* [gentoo-user] Custom DNS Servers for DHCPCD
@ 2006-09-25 0:05 Lord Sauron
2006-09-25 0:32 ` [gentoo-user] " Harm Geerts
0 siblings, 1 reply; 4+ messages in thread
From: Lord Sauron @ 2006-09-25 0:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 688 bytes --]
I'm sure this is an easy fix, however, I'm not sure how to do this
exactly...
Is /var/lib/dhcpc machine generated?
I want to set my own custom DNS servers for my server (the ones that the
DHCP host gives are wrong and are very slow!) and I have some
replacement ones. I think that by setting the DNS servers in
the /var/lib/dhcpc/dhcpcd-eth0.info file might change that, however,
the file looks machine-generated to me.
I looked through the wiki to fix this problem but I didn't find anything
that looked like it'd help. Some assistance here would be great.
The two DNS servers I need are 4.2.2.1 and 4.2.2.2.
--
http://lordsauronthegreat.googlepages.com/
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: Custom DNS Servers for DHCPCD
2006-09-25 0:05 [gentoo-user] Custom DNS Servers for DHCPCD Lord Sauron
@ 2006-09-25 0:32 ` Harm Geerts
2006-09-25 0:50 ` Nick Rout
0 siblings, 1 reply; 4+ messages in thread
From: Harm Geerts @ 2006-09-25 0:32 UTC (permalink / raw
To: gentoo-user
On Monday 25 September 2006 02:05, Lord Sauron wrote:
> I'm sure this is an easy fix, however, I'm not sure how to do this
> exactly...
>
> Is /var/lib/dhcpc machine generated?
yes
> I want to set my own custom DNS servers for my server (the ones that the
> DHCP host gives are wrong and are very slow!) and I have some
> replacement ones. I think that by setting the DNS servers in
> the /var/lib/dhcpc/dhcpcd-eth0.info file might change that, however,
> the file looks machine-generated to me.
It doesn't, that file only shows what the dhcp server told dhcpcd to use.
It is not used by your system for dns information.
/etc/resolv.conf lists the dns servers your system uses. (nameserver)
> I looked through the wiki to fix this problem but I didn't find anything
> that looked like it'd help. Some assistance here would be great.
>
> The two DNS servers I need are 4.2.2.1 and 4.2.2.2.
Configure dhcpcd to run with -R so resolve.conf is not replaced with the
resolve directives recieved from the dhcp server.
In /etc/conf.d/net:
config_eth0=("dhcp")
dhcpcd_eth0="-R"
Now you can add/replace your own dns servers in /etc/resolve.conf
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: Custom DNS Servers for DHCPCD
2006-09-25 0:32 ` [gentoo-user] " Harm Geerts
@ 2006-09-25 0:50 ` Nick Rout
2006-09-25 3:15 ` Harm Geerts
0 siblings, 1 reply; 4+ messages in thread
From: Nick Rout @ 2006-09-25 0:50 UTC (permalink / raw
To: gentoo-user
the file is /etc/resolv.conf (without the "e" in resolv !)
On 9/25/2006, "Harm Geerts" <harmgeerts@home.nl> wrote:
>On Monday 25 September 2006 02:05, Lord Sauron wrote:
>> I'm sure this is an easy fix, however, I'm not sure how to do this
>> exactly...
>>
>> Is /var/lib/dhcpc machine generated?
>
>yes
>
>> I want to set my own custom DNS servers for my server (the ones that the
>> DHCP host gives are wrong and are very slow!) and I have some
>> replacement ones. I think that by setting the DNS servers in
>> the /var/lib/dhcpc/dhcpcd-eth0.info file might change that, however,
>> the file looks machine-generated to me.
>
>It doesn't, that file only shows what the dhcp server told dhcpcd to use.
>It is not used by your system for dns information.
>
>/etc/resolv.conf lists the dns servers your system uses. (nameserver)
>
>> I looked through the wiki to fix this problem but I didn't find anything
>> that looked like it'd help. Some assistance here would be great.
>>
>> The two DNS servers I need are 4.2.2.1 and 4.2.2.2.
>
>Configure dhcpcd to run with -R so resolve.conf is not replaced with the
>resolve directives recieved from the dhcp server.
>
>In /etc/conf.d/net:
>config_eth0=("dhcp")
>dhcpcd_eth0="-R"
>
>Now you can add/replace your own dns servers in /etc/resolve.conf
>--
>gentoo-user@gentoo.org mailing list
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: Custom DNS Servers for DHCPCD
2006-09-25 0:50 ` Nick Rout
@ 2006-09-25 3:15 ` Harm Geerts
0 siblings, 0 replies; 4+ messages in thread
From: Harm Geerts @ 2006-09-25 3:15 UTC (permalink / raw
To: gentoo-user
On Monday 25 September 2006 02:50, Nick Rout wrote:
> the file is /etc/resolv.conf (without the "e" in resolv !)
Good catch, I missed that :)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-25 3:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 0:05 [gentoo-user] Custom DNS Servers for DHCPCD Lord Sauron
2006-09-25 0:32 ` [gentoo-user] " Harm Geerts
2006-09-25 0:50 ` Nick Rout
2006-09-25 3:15 ` Harm Geerts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox