LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2010, 12:27 PM   #1
corkypa
LQ Newbie
 
Registered: Oct 2005
Posts: 18

Rep: Reputation: 0
Dig resolves name, but some applications can't


I have an Ubuntu 9.10 system trying to get access to some other machines on the same lan. Dig and nslookup can resolve the names of the other machines, but applications like ssh and autofs cannot. Ssh, for instance, fails with "Name or service not known"

A router running DD-WRT is running the name server. However, all the other machines on the LAN work fine - they can ssh anywhere. Resolv.conf has the following lines:

domain <a domain>
search <same domain>
nameserver 192.168.1.1

However, another machine, running Ubuntu 9.04, has the same resolv.conf and works fine.

What is the reason that some applications on this machine cannot resolve names?
 
Old 02-13-2010, 12:36 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
You should check /etc/nsswitch.conf to see if the "hosts" line contains:
Code:
hosts: files dns
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bind resolves almost anything. Deluka Linux - Networking 2 09-19-2009 03:07 AM
dig @ works, dig doesn't eelgueta Linux - Networking 6 07-09-2007 06:45 PM
Konqueror resolves symlinks crashmakerMX Linux - Software 4 06-23-2005 11:09 AM
Domain resolves with no www... ServerStorm Linux - Software 20 11-15-2004 10:12 AM
IP resolves, not others belorion Linux - Networking 3 06-30-2004 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration