Networking Forums

Networking Forums > Computer Networking > Linux Networking > no resolving

Reply
 
 
michanux
Guest
Posts: n/a

 
      07-10-2006, 08:29 PM
Hello

for a 'Linux From Scratch' I need some hints where to look for mistakes
in this system.

The answer of 'nslookup michael.zuhause.de' is:

Server: 192.168.1.14
Address: 192.168.1.14#53

Name: michael.zuhause.de
Address: 192.168.1.12

Neither 'ping' nor 'ftp michael.zuhause.de' find the address but 'ping
192.168.1.12' and
'ftp 192.168.1.12' are successfull.

Michael

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      07-11-2006, 12:27 AM
On 10 Jul 2006, michanux <(E-Mail Removed)> wrote:
> for a 'Linux From Scratch' I need some hints where to look for mistakes
> in this system.
>
> The answer of 'nslookup michael.zuhause.de' is:
>
> Server: 192.168.1.14
> Address: 192.168.1.14#53
>
> Name: michael.zuhause.de
> Address: 192.168.1.12
>
> Neither 'ping' nor 'ftp michael.zuhause.de' find the address but 'ping
> 192.168.1.12' and
> 'ftp 192.168.1.12' are successfull.


See if michael.zuhause.de is in your /etc/hosts, because applications
typically use gethostbyname(), which checks hosts before trying DNS
(depending upon "order" setting in /etc/hosts.conf, or maybe the "hosts"
setting in /etc/nsswitch.conf). "nslookup" only checks DNS (not your
hosts file), so it would not know if your hosts file conflicts.
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      07-11-2006, 08:01 PM
On 10 Jul 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed). com>, michanux wrote:

>The answer of 'nslookup michael.zuhause.de' is:


working OK

>Neither 'ping' nor 'ftp michael.zuhause.de' find the address but 'ping
>192.168.1.12' and
>'ftp 192.168.1.12' are successfull.


Three possible causes:

[compton ~]$ cat /etc/host.conf
order hosts,bind
multi on
[compton ~]$ grep host /etc/nsswitch.conf
hosts: files nis dns
[compton ~]$

(Explanation: DNS tools like 'dig' 'dnsquery', 'host' and 'nslookup' ignore
those two files. /etc/host.conf is the older file, used by libc based
applications. /etc/nsswitch.conf is the more modern file, used by glibc2.)

It's also possible though far less likely, that there is an entry for that
hostname either in /etc/hosts, or (in the above example) in the NIS database
if you are running yp - that lists the hostname but no address, or lists some
non-accurate address.

Old guy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving WPA George W. Barrowcliff Wireless Networks 11 10-18-2008 02:30 AM
DNS resolving !! Amr Salah Windows Networking 4 04-29-2007 02:08 PM
Resolving localdomain Morten Linux Networking 4 01-01-2007 02:39 PM
TLD Resolving Woes salvador peralta Linux Networking 3 12-07-2004 04:45 AM
resolving locally Paddy Linux Networking 2 02-02-2004 11:49 AM



1 2 3 4 5 6 7 8 9 10 11