From: "Nick Rout" <nick@rout.co.nz>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Custom DNS Servers for DHCPCD
Date: Mon, 25 Sep 2006 12:50:07 +1200 (NZST) [thread overview]
Message-ID: <Cpymt9eU.1159145406.8155430.nick@localhost> (raw)
In-Reply-To: <200609250232.08255.harmgeerts@home.nl>
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
next prev parent reply other threads:[~2006-09-25 1:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-09-25 3:15 ` Harm Geerts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Cpymt9eU.1159145406.8155430.nick@localhost \
--to=nick@rout.co.nz \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox