Main menu


Advertisements

Originally created as a place for me to store some notes, this blog comments on my daily encounters with technology and aims to share some of this knowledge with fellow systems administrators and technical architects across the 'net. Amazingly, it's become quite popular!

SmartFeed by FeedBurner Subscribe to the site feed.

If you find the information here useful, then please consider linking to this site.

Recent Contributions

Tag cloud

Active Directory Adobe ADSL Apache Apple BizTalk Server Blogger Blogging Bluetooth CA Certification Configuration Manager (SMS) Dell Desktop Search Digital photography DNS Domain names DRM Dynamics CRM E-mail Exchange Hosted Services Exchange Server File formats Flash Forefront Friends Front Row FTP Google Green computing Groove History Host Integration Server HP Humour IAG IBM/Lenovo IIS iLife Industry trends Instant messaging Internet iPhone iPod ISA Server iSight IT law IT Operations iTunes Java Linux Live Meeting Live/Office Communications Server Macintosh Mainframes Malware Microsoft Microsoft.NET MIIS Mobility Money Motoring MS-DOS NetWare Networking hardware Networks Novell Office OpenOffice Operations Manager OS deployment OS X Outlook P2P Parallels Desktop Patch management PC hardware Photography Photoshop Podcasts PowerPoint Press coverage Professional skills Project Proxy Server QOS QuickTime Real Player Remote access RFID RSS SAP Scripting Search Security Server hardware SharePoint Site notices Social networking SoftGrid Software licensing Solaris Spam SQL Server Storage Symantec System Center Tablet PCs TCP/IP Telephony TV Useful books Useful software Useful websites Virtual Infrastructure Virtual PC Virtual Server/Hyper-V Virtualisation Visio Visual Studio VMM VMware VMware Fusion VMware Player VMware Server VMware Workstation Waffle and randomness Web browsers Web services Website development Wi-Fi Windows Windows 2000 Windows 7 Windows 9x Windows Home Server Windows Live/MSN Windows Media Windows Mobile Windows NT Windows PE Windows Server 2003 Windows Server 2008 Windows Small Business Server 2003 Windows Vista Windows XP Word WordPerfect WordPress WWW XBox 360 Xen Zune

Calendar

January 2006
M T W T F S S
« Dec   Feb »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Archive

Unknown hostname for Solaris 10 DHCP client

When I installed Solaris 10 x86, my computer thought its hostname was unknown. Aside from being annoying, this seemed to be causing a few issues, so I set about trying to set it to a name of my choice.

Using the uname -S hostname command set the hostname for me but this information didn’t persist on reboot. A bit of googling turned up various references to editing /etc/init.d/network so that it read /etc/nodename and set the hostname accordingly (as well as a script to set the hostname), but my system didn’t have an /etc/nodename file.

I understood that /etc/nodename should contain my computer’s name, but didn’t know if any other settings were required (I later found Jeff Hunter’s TCP/IP quick configuration guide, which confirmed that the file just contains the computer’s name - in my case laptop3).

It turns out that these hacks are for Solaris 8/9 - Solaris 10 is quite happy to set the hostname based on the contents of /etc/nodename. Once I had created /etc/nodename and rebooted, /etc/hosts read:

#
# Internet host table
#
127.0.0.1 localhost
192.168.7.106 laptop3 # Added by DHCP

and the computer was no longer anonymous!

Comments

1

Comment from Anonymous
Time: Wednesday 18 January 2006, 1:05

I had a similar problem getting the hostname set using DHCP. After a lot of reading, snooping, and pleading with my sysadmin, I finally found this solution:

http://docs.sun.com/app/docs/doc/816-4554/6maoq020t?a=view

Please note that step 4 is crucial

Alan Thompson

2

Comment from Mark
Time: Friday 20 January 2006, 15:29

Thanks Alan, that worked a treat! I’ve used your tip to write a new post on configuring a Solaris 10 DHCP client to register with a Windows Server 2003 DNS server.

3

Comment from Grant Croker
Time: Monday 12 March 2007, 14:09

Alan,

I think the URL you meant was http://docs.sun.com/app/docs/doc/816-4554/6maoq020m?a=view which is the page before the one you linked to.

regards

grant

4

Comment from Abhishek Srivastava
Time: Monday 20 August 2007, 9:31

Thank you very much for the quick fix solution. This has helped my configure my x86 machine a lot faster than what i expected.

- Abhishek

5

Comment from Andrew Thompson
Time: Thursday 29 November 2007, 12:01

Just take a look at this guys tag cloud - Solaris 10 hosted in VMware Fusion and I get the goods from a guy who advertises himself as a “Microsoft Exchange Server, Active Directory and the Windows platform” specialist. Thanks Mark (and Google:), drop us a line if you’re ever down-under.

6

Comment from Mark Wilson
Time: Thursday 29 November 2007, 15:00

Andrew - glad you found it useful… and even though it’s a sunny day in England, I’d rather be down under right now :-) Mark

7

Comment from Solarisnovis
Time: Thursday 8 May 2008, 10:37

Mark - I have installed Solaris 10 on a spark box, and I am now trying to get email and calendar to work from the company’s exchange server. No such luck. I have been playing arounf with various settings, but cannot git it to successfully logon using my LDAP/domain password, I am sure you have experience & Doco regarding this…

8

Comment from Mark Wilson
Time: Thursday 8 May 2008, 22:53

@Solarisnovis - I gave up on Solaris x86 as I found too many things worked differently to other Unix distros and I focused my Unix attentions on Linux instead. It’s a bit off-topic and I don’t know the full answer to your problem but I do have some ideas that might help:

Once you’ve got the authentication working, you may find that your Unix mail client needs POP3 or IMAP4 to be enabled on the Exchange Server (these normally disabled in a corporate environment in favour of HTTP/S or Oulook’s MAPI transport).

HTH, Mark

Write a comment

Please note the rules for comments and the privacy policy and data protection notice. I'm sorry but, because not everyone sticks to the rules, I've had to implement some spam prevention measures - if you're experiencing difficulties leaving a comment, please let me know.





The following XHTML tags may be used: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>