Be sure to add options ndots:1 (or 2) in your resolv.conf
On 28/02/11 08:44, stephen mulcahy wrote:
> Hi,
>> Has anyone had any problems on Ubuntu or Debian with DNS resolution?
> In particular, has anyone seen their systems generating lots of
> unneccesary queries? Specifically, I have systems configured with the
> following resolv.conf (actual values changed)
>> domain blah.example.com
> search foo.example.com aaa.example.com
> nameserver 10.0.0.1
> nameserver 10.0.0.2
>> What I'm seeing in the nameserver query logs is lots of queries for
> things like
>> www.google.com.foo.example.com
> www.google.come.aaa.example.com
> www.google.com.blah.example.com
>> My expectation of the above DNS config is that it would first try to
> use www.google.com and only tries things like
> www.google.com.foo.example.com if the initial queried name didn't
> contain any dots or www.google.com didn't resolve.
>> Is my understanding wrong here? Has anyone else seen similar problems?
>> Thanks for any thoughts.
>> -stephen
>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!