Summary: | baselayout-1.11.5: /etc/init.d/domainname breaks resolv.conf | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ulrich Müller <ulm> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WONTFIX | ||
Severity: | major | CC: | distler, pasky, scottfk |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ulrich Müller
2004-11-10 10:59:50 UTC
it's in the ChangeLog, read harder if you dont like the domainname script overriding local 'search' options, remove it from your boot (`rc-update del domainname`) Found the ChangeLog entry (sorry about that) and also bug 48277. Removing domainname from boot is not an option since it is needed to set the NIS domainname. I still do not see what is the point in adding the domain option at the end of the file since the awk script in domainname removes all lines starting with "domain". So putting it at the end just breaks the search option: | The domain and search keywords are mutually exclusive. If | more than one instance of these keywords is present, the | last instance wins. Maybe I should add that /usr/bin/host still works if "search" is before "domain", but /bin/ping and /usr/bin/ssh will fail ("unknown host"). then just run `rm /etc/dnsdomainname` as for ssh/ping vs host ... the bind-tools implement their own resolver library while ssh/ping use the glibc one If you really want the "domain" option to take precedence then you should be consequent and strip all "search" options from the file. To leave these unused lines in resolv.conf is only confusing. just talked with azarah and he pointed how our 3 config files in /etc/ (hostname / dnsdomainname / nisdomainname) are completely Gentoo specific i'll look at updating the scripts to use conf.d files and in the meantime add a config option to domainname to be a little more user friendly ... not everyone realizes how resolv.conf / domainname works and how using the domainname script is wrong if you want to manage your own resolv.conf |