simple DNS - NXDOMAIN

Kevin Darcy kcd at daimlerchrysler.com
Wed Apr 7 00:43:29 UTC 2004


philip wrote:

>hostname and hostname -f can return "localhost"
>
Right, which only proves that you've set the *hostname* of your system 
locally to the value "localhost" (why would you do that? Do all of the 
systems on your network have the same name?). The fact that "hostname 
-f" doesn't come back with an FQDN implies that a DNS lookup for 
"localhost" doesn't return anything useful. But you already knew that 
because of the NXDOMAIN result of "nslookup -sil localhost".

>nslookup -sil yahoo.com can return the right IP-addr.
>
Which proves that DNS resolution on your box works generally. If you 
were to add a "localhost" entry into the appropriate zone file, then it 
would most likely resolve too.

                                                                         
                                          - Kevin

>"Kevin Darcy" <kcd at daimlerchrysler.com> wrote in message
>news:c4vdt5$2hiu$1 at sf1.isc.org...
>  
>
>>philip wrote:
>>
>>    
>>
>>>installed Fedora 1, bind-9.2.2.P3-9
>>>hostname is localhost, the default one, changed nothing on the setting,
>>>/etc/init.d/named start
>>>nslookup -sil localhost    or used (127.0.0.1)
>>>   Server : 192.168.1.15
>>>   Address: 192.168.1.15#53
>>>
>>>** server can't find localhost : NXDOMAIN
>>>
>>>      
>>>
>>NXDOMAIN means "no such name". Apparently you haven't defined
>>"localhost" in your root zone or in any of the domains in your search
>>list (if you use one).
>>
>>Perhaps you'd be better off looking up a fully-qualified name.
>>
>>
>>                                                      - Kevin
>>
>>
>>
>>    
>>
>
>
>
>
>
>  
>




More information about the bind-users mailing list