[gentoo-user] Re: DNSDOMAIN in /etc/conf.d/domainname has no effect?
Zac Slade wrote: On Friday 26 May 2006 08:25, Alexander Skwar wrote: But I wonder what this DNSDOMAIN setting in /etc/conf.d/domainname is supposed to do. Because of It sets the domain in /etc/resolv.conf No, it doesn't. # When setting up resolv.conf, what should take precedence? # If you wish to always override DHCP/whatever, set this to 1. OVERRIDE=1 I thought that this setting would have an effect. Seems not so... This will determin whether DHCP will be allowed to replace your domain statement in /etc/resolv.conf. That's not what happens. [EMAIL PROTECTED] ~ $ grep -v -e '#' -e '^$' /etc/conf.d/domainname OVERRIDE=1 DNSDOMAIN=bei.digitalprojects.com NISDOMAIN=bei.digitalprojects.com [EMAIL PROTECTED] ~ $ cat /etc/resolv.conf # Generated by dhcpcd for interface ath0 search bei.digitalprojects.com nameserver 192.168.1.1 nameserver 195.202.32.79 nameserver 82.207.232.1 nameserver 213.160.0.1 I hope this clears it up. Nope :( Alexander Skwar -- Q: What happens when four WASPs find themselves in the same room? A: A dinner party. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: DNSDOMAIN in /etc/conf.d/domainname has no effect?
Hi, On Fri, 26 May 2006 19:40:02 +0200 Alexander Skwar [EMAIL PROTECTED] wrote: Zac Slade wrote: On Friday 26 May 2006 08:25, Alexander Skwar wrote: But I wonder what this DNSDOMAIN setting in /etc/conf.d/domainname is supposed to do. Because of It sets the domain in /etc/resolv.conf No, it doesn't. Well, it does (in /etc/init.d/domainname). But this is obviously overwritten in your case by dhcp settings. You're right with that OVERRIDE=1 doesn't fix this. Another start of /etc/init.d/domainname should. The OVERRIDE flag just decides whether the new domain setting goes to the start or the bottom (OVERRIDE=1) of /etc/resolv.conf (that has influence, because resolv.conf(5) says: the last instance wins). So what's probably missing is another call to /etc/init.d/domainname after DHCP has set up the interface. -hwh -- gentoo-user@gentoo.org mailing list