Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
trouble with dns
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mattgerg
n00b
n00b


Joined: 19 Nov 2002
Posts: 37

PostPosted: Mon Feb 17, 2003 12:55 am    Post subject: trouble with dns Reply with quote

I think this is a dns problem. When my network comes up, I can ping any ip address, but the moment I try to ping a domain name that is associated with that IP, it cannot find the host. /etc/resolv.conf looks like this

Code:
nameserver 128.118.25.3
nameserver 130.203.1.4
search zoominternet.net


It worked on friday, and when I brought my laptop back to school today, it does not work. I haven't changed either /etc/conf.d/net or /etc/resolv.conf

This behavior is weird, any help?
Back to top
View user's profile Send private message
jda
n00b
n00b


Joined: 11 Feb 2003
Posts: 5

PostPosted: Mon Feb 17, 2003 8:33 am    Post subject: Reply with quote

Do you have an /etc/nsswitch.conf? If so, that could be perturbing results if modified incorrectly.

Do you have dig/nslookup installed? If so, try doing:
Code:

# nslookup
> server 128.118.25.3
Default server: 128.118.25.3
Address: 128.118.25.3#53
> 128.118.25.3
Server:         128.118.25.3
Address:        128.118.25.3#53

3.25.118.128.in-addr.arpa       name = otc2.psu.edu
>

Execute those two commands at the nslookup prompt, and see if otc2 can list itself. Since it worked for me (not on campus), if it fails for you, it's likely something specific to your host. As for what, I dunno. Have you installed anything lately that might have modified networking/kernel code? Compiled a new kernel?
Back to top
View user's profile Send private message
Gimpy00Wang
n00b
n00b


Joined: 10 Apr 2003
Posts: 6

PostPosted: Thu Apr 10, 2003 2:32 am    Post subject: Reply with quote

I'm having similar problems, but not quite. I just installed Gentoo today and during the install process I had good DNS resolution. However, after recompiling the kernel, it's borked. So, I'm guessing I've gotta do something to get name resolution back since I recompiled? What might that be? nsswitch.conf doesn't seem to have been modified (timestamp didn't change) so I'd guess that's fine. Any suggestions?

- G!mpy
Back to top
View user's profile Send private message
Gimpy00Wang
n00b
n00b


Joined: 10 Apr 2003
Posts: 6

PostPosted: Thu Apr 10, 2003 2:39 am    Post subject: Reply with quote

Eh... Following up to my last post, it appears as though it's network-related. I can ping everything inside my network and I'm ssh'd into my Gentoo box now, but I can't get outside my network. The Gentoo box is the only one having troubles. Here's the results of a ping

Code:

PING 207.172.3.8 (207.172.3.8): 56 octets data
sendto: Network is unreachable
ping: sent 64 octets to 207.172.3.8, ret=-1
sendto: Network is unreachable
ping: sent 64 octets to 207.172.3.8, ret=-1
sendto: Network is unreachable
ping: sent 64 octets to 207.172.3.8, ret=-1


- G!mpy
Back to top
View user's profile Send private message
Gimpy00Wang
n00b
n00b


Joined: 10 Apr 2003
Posts: 6

PostPosted: Thu Apr 10, 2003 2:44 am    Post subject: Reply with quote

I promise I'll stop posting now. :) I didn't have a default gateway set. In case there's another n00b out there wondering where it's set...it's set in /etc/conf.d/net at the bottom. :) Or, you can set it manually with:

route add -net default gw 192.168.0.1 netmask 0.0.0.0 metric 1

- G!mpy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum