Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[resolved] No DNS resolution with static ip's
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
ouroboros1827
n00b
n00b


Joined: 10 Aug 2005
Posts: 17

PostPosted: Mon Sep 18, 2006 10:14 pm    Post subject: [resolved] No DNS resolution with static ip's Reply with quote

So, I just installed gentoo (just had an empty windows partition) to try out fvwm-crystal (and as we all know, gentoo's the best for most anything :D). I have a router (WRT54G v4) and turned off the dhcp...I use static ip's everywhere in my house (I didn't really enjoy my ip jumping around every reboot).

I have it working on windows fine. WHAT WORKS: I can ping my router (192.168.1.1), and can ping 64.233.167.99 (that would be the ip of google.com). I cannot ping google.com

I've been up and down most every config file I know and can't find anything how to set my dns - I know what it is, I just don't know how to tell gentoo/ifconfig what it is and to use it. Any ideas? Much thanks


Last edited by ouroboros1827 on Tue Sep 19, 2006 2:22 am; edited 1 time in total
Back to top
View user's profile Send private message
blubyu
n00b
n00b


Joined: 06 Jan 2005
Posts: 5

PostPosted: Mon Sep 18, 2006 10:37 pm    Post subject: Reply with quote

Hello fellow noob :) If I am not mistaken you need to add the following to /etc/resolv.conf

nameserver xxx.xxx.xxx.xxx <-- ip number of your name server.

Save the file and you should be good to go :)
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Mon Sep 18, 2006 10:40 pm    Post subject: Reply with quote

For any sort of configuration look at /etc/conf.d/net.example.
In my setup I use a router, with IP of 192.168.2.1, as the gateway with static IP of 192.168.2.200.
Code:
config_eth0=( "192.168.2.200 netmask 255.255.255.0 brd 192.168.2.255" )
routes_eth0=( "default gw 192.168.2.1" )
Back to top
View user's profile Send private message
ouroboros1827
n00b
n00b


Joined: 10 Aug 2005
Posts: 17

PostPosted: Tue Sep 19, 2006 2:21 am    Post subject: Reply with quote

blubyu wrote:
Hello fellow noob :) If I am not mistaken you need to add the following to /etc/resolv.conf

nameserver xxx.xxx.xxx.xxx <-- ip number of your name server.

Save the file and you should be good to go :)

Thank you SO MUCH

Now I'll know forever :D ... the ne config file I missed

Cheers
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