LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-02-2004, 09:19 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
network up, but not resolving correctly.


One of my machines has a working network, but isn't resolving names properly.

the entry in /etc/resolv.conf is correct (set to the ip of my router - same as the rest of the machines in the office), but when I try to "ping yahoo.com" I get nothing.. if I try to "ping 66.218.71.198" (which is yahoo) I get a proper ping.

Any idea what might be the cause?
 
Old 07-02-2004, 09:27 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Is this machine set to renew dns server on dhcp?
 
Old 07-02-2004, 09:29 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by bruno buys
Is this machine set to renew dns server on dhcp?
it's not using DHCP. so no.
 
Old 07-02-2004, 09:32 PM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
while trying to resolve the hostname run something like iptraf on that interface and log any paket that is transmitted. maybe this will give you a clue.

sl mritch.
 
Old 07-03-2004, 08:46 AM   #5
Ninaw
Member
 
Registered: Jun 2004
Location: QC, Philippines
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
I'm having a similar problem in slackware 9.0 using a D-Link router: I can only visit several sites. Whenever I ping some sites like ctan.org it says host not found; yet I can visit them under windoze. My router is configured as DHCP server so there might be something wrong with the renewal of the DNS server. I hope when I resolve this problem I could help you in some way too.
 
Old 07-03-2004, 11:05 AM   #6
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
try invoking:
host 66.218.71.198

For more verbose output, also invoke:
host -v 66.218.71.198

Suggestions:
1) you have a typo in /etc/resolv.conf
2) check /etc/nsswitch.conf, where your "hosts" line should look something like:
hosts: files dns
 
Old 07-03-2004, 12:10 PM   #7
Ninaw
Member
 
Registered: Jun 2004
Location: QC, Philippines
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
have you tried using dig?
 
Old 07-06-2004, 01:07 PM   #8
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by idaho
Suggestions:
1) you have a typo in /etc/resolv.conf
2) check /etc/nsswitch.conf, where your "hosts" line should look something like:
hosts: files dns
Ahh ha! I just made this machine an NIS server. In my attempts to get things going, I removed the "dns" entry from the hosts line in the nsswitch file.

Thanks!
 
Old 07-06-2004, 02:37 PM   #9
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
You are welcome.
 
  


Reply



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
Konqueror resolving network address v. slowly (Knoppix 3.7 HD install) peterx14 Debian 0 04-15-2005 02:48 PM
Network Card not loading correctly mckinleysh Linux - Networking 3 07-29-2004 11:15 PM
Squid and resolving local addresses on network lumpyhed Linux - Networking 1 03-12-2004 08:31 AM
help my network card wont work correctly.. duker_d_cooker Linux - Networking 6 02-27-2004 02:07 PM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM

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

All times are GMT -5. The time now is 05:47 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