Scenario:
- Attempt to resolve host named 'puppet' in domain 'puppet.mydomain.com'
- Resolution is successful if the resolv.conf file does not include search directive for 'localdomain' and only the domain 'mydomain.com'.
Resolv.conf working:
nameserver 1.2.3.4
search mydomain.com
Resolv.conf failed:
nameserver 1.2.3.4
search localdomain mydomain.com
- The system is multihomed
- Both interfaces have "domain-name mydomain.com" and "domain-search mydomain.com" directives in /etc/network/interfaces.
How can the resolution fail with an additional domain? Shouldn't resolution be attempted for all listed domains?
What do I need to configure to prevent localdomain from being added to the resolv.conf file?
puppet.localdomain
directly? Usedig
or another DNS tool that produces good diagnostics. Perhaps this name resolves in a way you don't expect which causes the subsequent query forpuppet.mydomain.com
to not be tried.dns-domain mydomain.com
anddns-search mydomain.com
in /e/n/i?