Re: DHCP and FQDN problem
- From: Dave Miner <dave.miner@xxxxxxx>
- Date: Wed, 24 May 2006 14:50:29 -0400
Jim McCullars wrote:
Greetings:
I'm setting a machine using Solaris 9 and am having a problem getting
the FQDN of the machine into /etc/hosts. If I edit the file like this:
146.229.5.74 newstest newstest.uah.edu
and reboot the machine, that line now looks like this:
146.229.5.74 newstest #added by DHCP
and things like pine and INN complain about not finding a domain. I have
/etc/defaultdomain set to uah.edu and that does not seem to make a difference.
I've Googled this group and seen several people with the same problem but
I haven't seen a good fix (especially for Solaris versions less than 10).
If I edit /etc/default/dhcpagent to remove token 12, the hostname gets set
to "unknown" and /etc/hosts still gets re-written with the nostname of unknown
without a FQDN. I am tempted to turn off DHCP altogether, but our network
folks prefer that I use it in case of router or DNS changes. Is there a good
fix or workaround for this? Thanks...
The easiest fix is to get the DHCP administrator to send back a FQDN as the hostname in option 12, and restore requesting it in your /etc/default/dhcpagent.
If the DHCP server allows clients to request the name they'd like, then the next easiest thing to do is to place "inet newstest.uah.edu" in /etc/hostname.<interface>, where <interface> is the device name of the network interface you're using.
The next-easiest fix is to place the name you want to use in /etc/nodename, leave everything else as it currently is; this will cause the system to use the name in /etc/nodename in place of the "unknown" you're getting right now.
Dave
.
- Prev by Date: Re: Netra X1 hangs when net booting Solaris 10 1/06
- Next by Date: Re: adding pkgs to non-global zones
- Previous by thread: Re: DHCP and FQDN problem
- Next by thread: Sun studio CC __attribute__(format) ??
- Index(es):
Relevant Pages
|