View previous topic :: View next topic |
Author |
Message |
space_monkey n00b
Joined: 11 Mar 2003 Posts: 22 Location: Somewhere
|
Posted: Thu Mar 27, 2003 11:18 pm Post subject: DNS working intermitantly |
|
|
I am haveing trouble with DNS with my new gentoo installation. It seems to only work sometimes. Bassically sometimes I can resolve names on the internet and sometimes I cant. I seem to have no problems when I boot the same computer into a windows xp partition.
This is what is in my resolv.conf
Code: | nameserver 194.168.4.100
nameserver 192.168.8.100 |
this is what happens when I ping google by name then by IP
Code: | andy@jeff andy $ ping www.google.com
ping: unknown host www.google.com
andy@jeff andy $ ping 216.239.39.104
PING 216.239.39.104 (216.239.39.104): 56 octets data
64 octets from 216.239.39.104: icmp_seq=0 ttl=51 time=111.4 ms |
The thing I really dont understand is why I have no problem sometimes but other times DNS apears not to be working |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Thu Mar 27, 2003 11:55 pm Post subject: Re: DNS working intermitantly |
|
|
Code: | nameserver 194.168.4.100
nameserver 192.168.8.100 |
I got $10 that says the second name server is the wrong IP. 192.168.8.100 would be internal IP space and it's probably unreachable.
194.168.8.100 would probably be the correct IP. I'm also a fan of using the the following /etc/resolv.conf settings to deal with the occasional broken DNS server:
Code: | azul kashani # more /etc/resolv.conf
domain badapple.net
search badapple.net lax.badapple.net chi.badapple.net
nameserver 10.10.101.34
nameserver 10.10.101.35
options rotate # round robin between name servers
options timeout:1 # set timeout to 1 sec instead of the 5,10,25
options retrans:1 # set retran to 1 sec instead of the above
options attempts:3 # set attempts to 3 down from 5
|
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
space_monkey n00b
Joined: 11 Mar 2003 Posts: 22 Location: Somewhere
|
Posted: Fri Mar 28, 2003 5:41 pm Post subject: |
|
|
DOH!
Most of my problems seem to come down to typos, sometimes you just cant see them for looking.
Anyway, thanks for pointing it out, everything is fine now. |
|
Back to top |
|
|
|