View previous topic :: View next topic |
Author |
Message |
eae Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 28 Dec 2004 Posts: 211
|
Posted: Sat Apr 01, 2006 8:49 pm Post subject: changing dns with dhcp [SOLVED :D] |
|
|
I would like to try a different dns server. Currently my router gets the dns servers automatically from my isp and my computer gets the dns servers from the router through dhcp. My /etc/conf.d/net was and I changed it to Code: | config_eth1=( "dhcp" )
dhcp_eth1=( "nodns" )
dns_servers_eth1=( "193.205.245.5 193.205.245.8" ) | Is this correct? How can I know if I'm actually using those dns servers? I tried to put some random numbers instead of a working dns server and I was still able to browse the web, so I think I did everything wrong and I am still using the dns obtained from my isp. Thanks in advance. ![Smile :)](images/smiles/icon_smile.gif)
Last edited by eae on Sat Apr 01, 2006 9:50 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sat Apr 01, 2006 9:00 pm Post subject: maybe this'll help |
|
|
I think i can help you.
Changing the /etc/conf.d/net file isn't going to change anything until you do a
Code: |
/etc/init.d/net.eth1 restart
|
Now the current dns server usually is gonna be in /etc/resolv.conf. If you edit this manually (no initscript restarting is necessary i think) you will use whatever you put in your /etc/resolv.conf. I think it's the first entry that gets tried first.
does that help?
oh yeah, btw are you sure you want to use a different dns server? I have trouble imagining why that would be a good idea... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eae Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 28 Dec 2004 Posts: 211
|
Posted: Sat Apr 01, 2006 9:32 pm Post subject: Re: maybe this'll help |
|
|
erik258 wrote: | I think i can help you.
Changing the /etc/conf.d/net file isn't going to change anything until you do a
Code: |
/etc/init.d/net.eth1 restart
|
Now the current dns server usually is gonna be in /etc/resolv.conf. If you edit this manually (no initscript restarting is necessary i think) you will use whatever you put in your /etc/resolv.conf. I think it's the first entry that gets tried first.
does that help?
oh yeah, btw are you sure you want to use a different dns server? I have trouble imagining why that would be a good idea... |
Hi erik and thanks for the answer, first of all, I already restarted net.eth1 when I tried the first time. Looking at /etc/resolv.conf confirmed that I am not using the dns server that I specified, but the one provided by the router through dhcp: Code: | # cat /etc/resolv.conf
# Generated by net-scripts for interface eth1
nameserver 192.168.1.1
|
This is the ip address of my router, which is running his own dns server
The reason why I want to change it is because I have this problem: http://bani.anime.net/banimod/forums/viewtopic.php?p=61777#61777 and I also have the impression that navigating in internet has become slow, mainly when I want to connect to a certain new domain, but then navigating in the pages inside that domain is fast as usual, so I thought that the cause could be a very slow name resolving...
EDIT: I manually edited my /etc/resolv.conf file, and the result is an impressive speedup in internet navigation, and the solving of the problem linked above. I think that the dns server of my router is teh borken
FINAL EDIT: ok perfect, the dns_servers_eth1 option didn't work as I expected, but the nodns option works perfectly: now /etc/resolv.conf doesn't get overwritten when I start net.eth1, so after maually editing it the problem is basically solved. Thanks again for your help ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sun Apr 02, 2006 3:37 am Post subject: no problem |
|
|
just glad i could help ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|