Re: ping, ssh not using dns?
Nick Frost <[email protected]> Sun, 7 Jun 2009 09:05:25 -0600
| Newsgroups | gmane.org.user-groups.nmlug |
|---|---|
| Message-ID | <[email protected]> |
On Jun 7, 2009, at 6:46 AM, Aaron wrote: > I'm using netmanager over wireless on eeebuntu at home. > the 'host' command seems to do host name lookups, but > other commands, like ping and ssh do not. > > why might this occur? > > flea:~> cat /etc/resolv.conf > # Generated by NetworkManager > domain localnet > search localnet > nameserver 192.168.1.1 > flea:~> host coot > coot has address 192.168.1.1 > flea:~> ping coot > ping: unknown host coot What is the output of; grep -i hosts /etc/nsswitch.conf ? e.g. grep dns /etc/nsswitch.conf # dns Use DNS (Domain Name Service) #hosts: db files nisplus nis dns hosts: files dns Also, do you have an entry for coot in your local /etc/hosts file? 192.168.1.1 coot.boim.com coot and what is the local domain name set to? (dnsdomainname) dnsdomainname It may be that your local machine thinks it has a different domain name than that which your local nameserver is returning for the query and SSH and/or ping are finding a mismatch with the dnsdomain name and think coot belongs to a different network. -Nick ---------------------------------------- Nicholas S. Frost 7 Avenida Vista Grande #325 Santa Fe, NM 87508 [email protected] ---------------------------------------- _______________________________________________ NMLUG mailing list [email protected] http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug