Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DNS problems
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
cmuench
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2005
Posts: 110

PostPosted: Thu Sep 29, 2005 3:15 am    Post subject: DNS problems Reply with quote

My problem is that in my net conf.d file I have is set to dhcp and my DNS namerservers is extremely slow.
I know that I can put my own in resolv.conf but that it gets overwritten every boot. I was wondering if there is any way to specify what DNS server to use in my conf.d net file Thanks
Chris
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Thu Sep 29, 2005 4:38 am    Post subject: Re: DNS problems Reply with quote

cmuench wrote:
My problem is that in my net conf.d file I have is set to dhcp and my DNS namerservers is extremely slow.
I know that I can put my own in resolv.conf but that it gets overwritten every boot. I was wondering if there is any way to specify what DNS server to use in my conf.d net file Thanks
Chris


if you are using dhcpcd:

Code:

man dhcpcd

...
       -R     Prevents  dhcpcd  from  replacing  existing <etcDir>/resolv.conf
              file.
...


Code:

# For passing custom options to dhcpcd use something like the following.  This
# example reduces the timeout for retrieving an address from 60 seconds (the
# default) to 10 seconds.
#dhcpcd_eth0="-t 10"

_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
cmuench
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2005
Posts: 110

PostPosted: Thu Sep 29, 2005 1:17 pm    Post subject: Reply with quote

Thanks fpr your help but I have one question.
Where do I add the -R flag?
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Thu Sep 29, 2005 4:45 pm    Post subject: Reply with quote

to the dhcpcd_eth0= in your /etc/conf.d/net file
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