View previous topic :: View next topic |
Author |
Message |
cmuench Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 Jan 2005 Posts: 110
|
Posted: Thu Sep 29, 2005 3:15 am Post subject: DNS problems |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
petrjanda Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/92499387143e6705293ead.jpg)
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Thu Sep 29, 2005 4:38 am Post subject: Re: DNS problems |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cmuench Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 Jan 2005 Posts: 110
|
Posted: Thu Sep 29, 2005 1:17 pm Post subject: |
|
|
Thanks fpr your help but I have one question.
Where do I add the -R flag? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
m_sqrd Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 18 Jul 2005 Posts: 367
|
Posted: Thu Sep 29, 2005 4:45 pm Post subject: |
|
|
to the dhcpcd_eth0= in your /etc/conf.d/net file |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|