>> I'm still finding my way around how Unix operates, so if someone could
>> help out a newbie, it'd be greatly appreciated. I've just
>> re-installed Solaris onto one of our machines, and for some reason it
>> didn't accept the hostname and DNS server I gave it during the
>> install. How do I set the machine up so that the hostname is set
>> during boot? I've had a look at the startup scripts, but I can't make
>> head nor tail of them! Also, where do specify the DNS server that the
>> machine should use? I'm soryr if these questionsseem really stupid,
>> but I'm only just beginning to find my way around Solaris!
>> Cheers,
>> Steve
>5 files you need to look at
>/etc/nodename <- what the box wants to call itself (does not have to be
>fully qualified)
>/etc/hostname.[le0|hme0] <- name or ip assigned to interface
>/etc/hosts <- ip name translation for /etc/hostname.[le0|hme0] (not
>always used)
>/etc/resolv.conf <- has the name/ip of the dns server (look for a line
>like nameserver 192.168.1.2)
>/etc/nsswitch.conf <- this describes how services are implemented
>in the nsswitch.conf file look for the hosts: line it should probably
>read
>hosts: files dns
>unless you are using NIS or some other method for your dns
>Hope this helps,
>Eric
I've just managed to figure out the DNS setup, but thanks anyway! I'd
found hostname.hme0, and put the machine's hostname in there, but it
came up with an error message at boot. Does the hostname have to be
in both of the files, or just one? Also, is it just the hostname in
the file, or do you have to include any extra commands?
Cheers,
Steve