LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-14-2004, 03:47 PM   #1
Kane635
Member
 
Registered: Jul 2004
Posts: 36

Rep: Reputation: 15
DHCP - DNS not applying...


My /etc/resolv.conf file...

nameserver 127.0.0.1
nameserver 192.168.1.100

192.168.1.100 is my router... 127.0.0.1 is... well, if you don't know that, leave.
Anyway, it takes 15 seconds to resolve a DNS address in a web browser... It takes 0 seconds to ping something...

[kane@localhost kane]$ ping yourmom.com
PING yourmom.com (64.246.50.9) 56(84) bytes of data.
64 bytes from yourmom.com (64.246.50.9): icmp_seq=1 ttl=46 time=73.7 ms
64 bytes from yourmom.com (64.246.50.9): icmp_seq=2 ttl=46 time=70.8 ms
64 bytes from yourmom.com (64.246.50.9): icmp_seq=3 ttl=46 time=84.7 ms
64 bytes from yourmom.com (64.246.50.9): icmp_seq=4 ttl=46 time=71.5 ms

[1]+ Stopped ping yourmom.com
[kane@localhost kane]$

=/
 
Old 09-14-2004, 04:46 PM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
so is your computer(127.0.0.1) an actual nameserver running caching dns or something like it?

run a sniffer and see what happening to the traffic
 
Old 09-14-2004, 05:09 PM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
192.168.1.100 is my router... 127.0.0.1 is... well, if you don't know that, leave.

Not the type of wording I would use if I was hoping to generate replies to my question.

Anyway, it takes 15 seconds to resolve a DNS address in a web browser... It takes 0 seconds to ping something...

Obviously a timeout problem of some sort. I know, duh! Have you verified the following?

1) Is there a DNS server running at 127.0.0.1?
2) If yes, are you posiibly restricting query access? i.e. allow-query?
3) Is there a DNS server running at 192.168.1.100?
4) If yes, are you possibly restricting query access? i.e. allow-query?
5) Are you sure your ping results were not using cached results from previous queries?

6) From the host at 127.0.0.1, does the output of "dig yourmom.com a" show proper name resolution without a timeout?
7) How about the other name server you have specified? i.e. dig @192.168.1.100 yourmom.com a

I know the above questions seem basic, but it might at least help pinpoint whether or not this problem is application specific -or- your systems resolver lib config specific. Also, I would think that a web browser running on the same system is calling the same resolver lib utillites that ping uses. i.e. gethostbyname and gethostbyaddr. But then, I haven't looked at the source code.
 
  


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
DHCP and DNS Likosin Linux - Networking 1 11-13-2004 11:27 PM
Dns + Dhcp james.farrow Linux - Networking 0 06-01-2004 09:15 AM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 10:40 AM
Dns / Dhcp TheRealDeal Linux - Networking 9 09-19-2003 04:57 AM
DNS with DHCP upr8830 Linux - Networking 3 06-18-2003 11:39 PM

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

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