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.<br>
<br>
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.<br><br><div><span class="gmail_quote">On 11/28/05, <b class="gmail_sendername">Alan</b> <<a href="mailto:d1@ms.unimelb.edu.au">d1@ms.unimelb.edu.au</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think it gets the domainname from /etc/sysconfig/network.<br><br><br>David Wilk wrote:<br>> Howdy all,<br>><br>> I help administer a RHEL3 server and dhclient-script is a bit flakey and<br>> will not always set dnsdomainname.  I'm talking about the result from
<br>> hostname -d.  I've tried setting this in /etc/resolv.conf as 'domain'<br>> and 'search' and I've tried using a FQDN in 'hostname' but nothing seems<br>> to work.  I've grepped the filesystem for this setting and can find it
<br>> nowhere.  It appears to be a magic value somewhere with no way to<br>> influence it directly.<br>><br>> any thoughts?<br>><br>> I would very much appreciate any thoughts, ideas, etc.<br>><br>> thanks,
<br>> Dave<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> --<br>> redhat-sysadmin-list mailing list<br>> <a href="mailto:redhat-sysadmin-list@redhat.com">
redhat-sysadmin-list@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list">https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list</a><br></blockquote></div><br>