Linux Experts Needed

GoPackGo

Diamond Member
Oct 10, 2003
6,434
491
126
Hi,

I am connecting into a network via Cisco VPN Client for linux.

I can ping IP addresses but not names. It comes back with unknown host.

The kicker is I can use the host command and nslookup and it will resolve.

I have checked resolv.conf and it looks fine.

If I take the machine and connect it directly to the network I am trying to connect it works fine.

any ideas?

Linux = Suse 9.3


 

TonyRic

Golden Member
Nov 4, 1999
1,972
0
71
Is the hostname fully qualified? If so try 'ping <hostname/domain> <DNS server IP>' and see if that works.

Also, have you tried 'dig'?
 

GoPackGo

Diamond Member
Oct 10, 2003
6,434
491
126
Originally posted by: TonyRic
Is the hostname fully qualified? If so try 'ping <hostname/domain> <DNS server IP>' and see if that works.

Also, have you tried 'dig'?

I tried the ping with DNS server IP and that didn't work
ie ping host.domain serverip

dig returned an ip.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
/etc/nsswitch.conf is used to control how the resolver library handles name resolution (host, nslookup, dig all query the DNS server directly). Make sure it has a line similar to:

hosts: files dns

They're the base required, files is for /etc/hosts and dns is for DNS. There are some other valid options like lwresd for the bind caching daemon or mdns for multicast dns and maybe others, but I don't think they should affect anything as long as the resolver will go through them in order so if DNS is returning the proper name it should return at that point and not try any more.
 

Yeraze

Member
Dec 16, 2005
30
0
0
It's been a year since I last used the Linux Cisco client, but I seem to remember having a similar issue related to the fact that hte VPN software actually overwrites your /etc/resolv.conf when you connect. See what yours is set to before you connect, and once you're connected.

Also, do you have ALL traffic routed through your VPN, or only network-specific traffic? I believe it's an option in the configuration files...
 

GoPackGo

Diamond Member
Oct 10, 2003
6,434
491
126
Originally posted by: Nothinman
/etc/nsswitch.conf is used to control how the resolver library handles name resolution (host, nslookup, dig all query the DNS server directly). Make sure it has a line similar to:

hosts: files dns

They're the base required, files is for /etc/hosts and dns is for DNS. There are some other valid options like lwresd for the bind caching daemon or mdns for multicast dns and maybe others, but I don't think they should affect anything as long as the resolver will go through them in order so if DNS is returning the proper name it should return at that point and not try any more.

I checked that and it does.
 

GoPackGo

Diamond Member
Oct 10, 2003
6,434
491
126
Originally posted by: Yeraze
It's been a year since I last used the Linux Cisco client, but I seem to remember having a similar issue related to the fact that hte VPN software actually overwrites your /etc/resolv.conf when you connect. See what yours is set to before you connect, and once you're connected.

Also, do you have ALL traffic routed through your VPN, or only network-specific traffic? I believe it's an option in the configuration files...

It does overwrite the resolv.conf

once the VPN connects it routes ALL traffic through it. Local LAN access is disabled.

Whats weird is I can use NSLOOKUP, DIG, and HOST.


PING won't work.
 

Yeraze

Member
Dec 16, 2005
30
0
0
Is ping failing to resolve hostnames, or are you just seeing 100% packet loss with ping? If it's the 2nd, then the host at the other end may simply just be blocking ping packets.

Also, do you have a caching DNS system setup locally that may cause some commands to resolve?
 

GoPackGo

Diamond Member
Oct 10, 2003
6,434
491
126
Originally posted by: Yeraze
Is ping failing to resolve hostnames, or are you just seeing 100% packet loss with ping? If it's the 2nd, then the host at the other end may simply just be blocking ping packets.

Also, do you have a caching DNS system setup locally that may cause some commands to resolve?

If I ping the IP it comes back just fine. If I ping the name it comes back ping: unknown host.

I don't believe I have DNS caching...how can I tell?
 

Yeraze

Member
Dec 16, 2005
30
0
0
Well.. if you ping the same hostname before you VPN and it works, and it fails while you're VPN'ed, then it's not a Caching DNS problem
 

Yeraze

Member
Dec 16, 2005
30
0
0
AS for a DNS server locally, look for a 'bind' or 'named' process running.

I'm kinda out of ideas, but just from googling I found a known issue with *.local domains that may also apply to this. it's for Suse, but this site: http://portal.suse.com/sdb/en/2005/07/rdassen_multicast_dns.html says that if you put 'mdns off' in your /etc/host.conf file that will disable the spiffy new Multicast DNS and use the older Unicast DNS.
 

TonyRic

Golden Member
Nov 4, 1999
1,972
0
71
Originally posted by: Yeraze
AS for a DNS server locally, look for a 'bind' or 'named' process running.

I'm kinda out of ideas, but just from googling I found a known issue with *.local domains that may also apply to this. it's for Suse, but this site: http://portal.suse.com/sdb/en/2005/07/rdassen_multicast_dns.html says that if you put 'mdns off' in your /etc/host.conf file that will disable the spiffy new Multicast DNS and use the older Unicast DNS.



What an obscure problem. NICE find.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |