View previous topic :: View next topic |
Author |
Message |
mattgerg n00b

Joined: 19 Nov 2002 Posts: 37
|
Posted: Mon Feb 17, 2003 12:55 am Post subject: trouble with dns |
|
|
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 |
|
 |
jda n00b

Joined: 11 Feb 2003 Posts: 5
|
Posted: Mon Feb 17, 2003 8:33 am Post subject: |
|
|
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 |
|
 |
Gimpy00Wang n00b

Joined: 10 Apr 2003 Posts: 6
|
Posted: Thu Apr 10, 2003 2:32 am Post subject: |
|
|
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 |
|
 |
Gimpy00Wang n00b

Joined: 10 Apr 2003 Posts: 6
|
Posted: Thu Apr 10, 2003 2:39 am Post subject: |
|
|
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 |
|
 |
Gimpy00Wang n00b

Joined: 10 Apr 2003 Posts: 6
|
Posted: Thu Apr 10, 2003 2:44 am Post subject: |
|
|
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 |
|
 |
|