Re: Networking: etch doesn't find local net



Alexis Huxley wrote:
jw@johannes2:~$ host student2
student2 has address 192.168.0.31

I believe 'host' goes directly to /etc/resolv.conf to see what
your DNS servers are.

jw@johannes2:~$ ping student2
ping: unknown host student2

But 'ping' goes through the 'normal' resolution process, the
first step of which is looking in /etc/nsswitch.conf.

There I suspect you don't have:

hosts: files dns

which is probably what you need.

Thanks, but my /etc/nsswitch.conf already has this set-up (not changed from debian's default values) and still it doesn't work:

/--
johannes2:/etc# more nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files dns
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis
\--

The problem seems to be that for internal hostnames it should query the first nameserver in resolv.conf (which runs dnsmaq), but apparently it queries the second and/or third which doesn't know the hostname.

For the host command it correctly queries the first nameserver, but for ping it wrongly queries the second or third nameserver in resolv.conf.

Johannes


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Fresh install of Solaris 10 - Networking semi-working.
    ... What is odd is that I can resolve the host names, but cant connect to machines outside my LAN. ... As you can see, I can resolve host names, so it is connecting to my ISP's DNS servers I think. ... ping: unknown host sun.com ...
    (comp.unix.solaris)
  • Re: Networking: etch doesnt find local net
    ... I believe 'host' goes directly to /etc/resolv.conf to see what ... your DNS servers are. ... ping: unknown host student2 ... But 'ping' goes through the 'normal' resolution process, ...
    (Debian-User)
  • Re: connecting via broadband?
    ... > Ping statistics for 193.252.22.137: ... >> mail server and that it is responsive so you get a mail session ... >> host that responds to 'ping' does NOT mean the server program is ... >> actually running or responsive on that host. ...
    (microsoft.public.outlook.general)
  • Re: host availability
    ... >>>google.com, my default gateway, comcast's mail server etc. ... a host was "up or down". ... If you don't get an answer to a ping request, ... happened to reset the interface right then, remote system got trojaned ...
    (comp.security.firewalls)
  • RE: ICMP (Ping)
    ... I do like your reasoning that others do not generally have a business need ... to ping your hosts, however I still prefer to allow this service not simply ... how many hosts do not respond to ICMP echo. ... DHCP server should be able to assume that if the IP were in use a host would ...
    (Security-Basics)