Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Basically, with an empty resolv.conf (and no weird stuff configured like resolvconf, nscd...nothing at all, just a plain squeeze install), I see DNS queries to 127.0.0.1 port 53 when trying to resolve a name. Has that always been that way?

/etc/nsswitch.conf has the typical "hosts: files dns" line.

share|improve this question

1 Answer 1

I guess it's libc's default/ fallback behaviour.

Tried to reconstruct what you did. This stops, if you change your nsswitch.conf-entry to:

hosts: files

See also this hint: http://sourceware.org/ml/libc-alpha/2009-02/msg00028.html

See 'man 5 resolv.conf':

   If this file doesn't exist the only name server to be queried will be  on  the
   local  machine; the domain name is determined from the hostname and the domain
   search path is constructed from the domain name.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.