Quote:
Originally Posted by Ankit yadav
I found that while I nslookup my dns server from one of client, It doesn't nslookup with hostname while it does with FQDN.
But it works all good when I try to nslookup other client.
I have entered "search domainname" in resolv.conf.
Can any one tell reason. Is it like that itself or somewhere I am missing something.
Attaching screenshot.
|
Since you have a hostname with a dot, you need to increase ndots in /etc/resolv.conf (the default=1), so the resolver will use the search domain before doing an absolute name lookup even when queried for a hostname containing a dot:
Code:
search example.com
options ndots:2
For more details read the resolv.conf manpage
Regards