[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: dhclient and dnsdomainname (hostname -d)

there is much confusion on this.  First of all, domainname refers only to the NIS domainname not the DNS domainname.  the domainname I'm trying to affect here is for DNS and it's referred to by RH as dnsdomainname.  I've tried altering the DOMAINNAME var in /etc/sysconfig/network and verious permutations and have yet to make any change to dnsdomainname.  the docs suggest that the dnsdomainname is obtained from /etc/hosts, and failing that, from /etc/resolv.conf.

However, I cannot seem to affect any change despite what I put in /etc/resolv.conf.  Usually, a RH server is able to determine this itself 'automagically', probably from a reverse lookup of the IP address.  However, when the 'magic' fails, there doesn't appear to be any way to manually tweak this dial.

On 11/28/05, Alan <d1 ms unimelb edu au> wrote:
I think it gets the domainname from /etc/sysconfig/network.

David Wilk wrote:
> Howdy all,
> I help administer a RHEL3 server and dhclient-script is a bit flakey and
> will not always set dnsdomainname.  I'm talking about the result from
> hostname -d.  I've tried setting this in /etc/resolv.conf as 'domain'
> and 'search' and I've tried using a FQDN in 'hostname' but nothing seems
> to work.  I've grepped the filesystem for this setting and can find it
> nowhere.  It appears to be a magic value somewhere with no way to
> influence it directly.
> any thoughts?
> I would very much appreciate any thoughts, ideas, etc.
> thanks,
> Dave
> ------------------------------------------------------------------------
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list redhat com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]