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 04-03-2005, 08:13 PM   #1
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
wacky DNS resolution problem


this is just very very odd.

I've had my linux box setup the same way for a year and a half. Used it every couple days. Today it can't resolve hostnames, everything times out. I can ping ip's fine. Here's more wierdness, my resolve.conf says:

domain local.me
nameserver 127.0.0.1
nameserver 151.202.0.84
nameserver 151.203.0.84

But, if I run dig on either one of those servers, I get a name back no problem:

$ dig hello.com @151.202.0.84

; <<>> DiG 9.2.3 <<>> hello.com @151.202.0.84
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30658
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;hello.com. IN A

;; ANSWER SECTION:
hello.com. 179 IN A 63.236.5.136

;; AUTHORITY SECTION:
hello.com. 2473 IN NS ns4.google.com.
hello.com. 2473 IN NS ns1.google.com.
hello.com. 2473 IN NS ns2.google.com.
hello.com. 2473 IN NS ns3.google.com.

;; Query time: 518 msec
;; SERVER: 151.202.0.84#53(151.202.0.84)
;; WHEN: Sun Apr 3 20:02:06 2005
;; MSG SIZE rcvd: 122


But if I try to do anything that needs to do dns lookups, it times out. For example:

$ lynx hello.com
Looking up hello.com first
Looking up www.hello.com.com, guessing...
Looking up www.hello.com.edu, guessing...
Looking up www.hello.com.net, guessing...
Looking up www.hello.com.org, guessing...
Can't Access `file://localhost/www/hello.com'
Alert!: Unable to access document.
lynx: Can't access startfile

so, wtf??

I have a linksys router, but that's always been there the same. And I'm on my windows machine right now behind he same router with no dns problems (and I checked, it's using the same dns servers).

wacky?
 
Old 04-03-2005, 09:31 PM   #2
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
First of all, remove the nameserver entry that points to 127.0.0.1. Then run nslookup and type server to see which DNS server you are querying by default. Then we can work from there.
 
Old 04-03-2005, 11:54 PM   #3
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Ok here's what happened. I removed the 127 line from resolve.conf and tried lynx. It worked, so I added the line back in to resolve.conf and tried again, and it still worked.

This was the first time I tried since writing my original post, so maybe it started working between now and then "on it's own"- or rather, the dns server was changed/fixed. Another reason that seems likely is that this machine hasn't had it's network config changed in a year.

I just rebooted it and it's still working now,

thanks,
rw
 
Old 04-04-2005, 06:04 PM   #4
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Wait now it's happening again. And worse, I think. Now when I try with dig, it only works half the time.

I removed the 127 line,

$ nslookup
> server
Default server: 151.202.0.84
Address: 151.202.0.84#53
Default server: 151.203.0.84
Address: 151.203.0.84#53

still wont work.
 
  


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
problem with portage dns resolution jalsk Linux - Software 0 02-07-2005 11:50 PM
Problem with web browser DNS resolution pepe_k Mandriva 5 01-04-2005 02:47 AM
Strange DNS Resolution Problem pmconway Fedora 1 11-10-2004 07:37 AM
DNS resolution guitarman85281 Linux - Networking 4 10-12-2004 08:52 PM
Internal DNS Resolution Problem WeNdeL Linux - Networking 12 01-17-2003 01:12 PM

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

All times are GMT -5. The time now is 01:34 AM.

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