Re: DHCP and FQDN problem



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
.



Relevant Pages

  • Re: Possibly slightly O.T.: Why FQDN required to do simple bind with "ldapsearch"?
    ... I was doing some testing, using ldapsearch from a Solaris machine, to access Active Directory. ... I was trying to use a simple bind, and initially could not get a successful access, until I started using a fully-qualified domain name (FQDN) for the hostname parameter. ... I'm not sure if this is more of an AD question, or an ldapsearch question, but I was wondering if anyone might know why I had to use the FQDN for the ldapsearch hostname parameter in order for the simple bind to succeed? ...
    (microsoft.public.win2000.active_directory)
  • Using awk to remove the client port on a netstat listing
    ... and I like to strip away anything except the FQDN OR the ip ... A typical netstat on my solaris provides the following output on my ... but still preserve a host wich dont resolve(or has no PTR ...
    (comp.lang.awk)
  • Re: Newbie Q: DynDNS sendmail setup
    ... > unknown; sleeping for retry ... Fix your /etc/inet/hosts file to provide the FQDN for your host. ...
    (comp.unix.solaris)
  • Re: do you use FQDN as the hostname?
    ... [Jay G. Scott]: ... > when you set the hostname, you can fix it so it takes the FQDN as ...
    (comp.unix.solaris)
  • Re: "Cannot find server or DNS Error" - webmail
    ... If you are typing the fqdn from internal you will get the error you are ... you can get to mail using http://server/exchange or edit the host ... > I have a client that has XP, ME, and 98 boxes. ...
    (microsoft.public.backoffice.smallbiz2000)