pppd and DNS
Jorge Santos
jorge.jsf at gmail.com
Fri Apr 29 01:25:33 UTC 2005
On 4/28/05, steven at heimann.com.au <steven at heimann.com.au> wrote:
> I am running Ubuntu 5.04.
>
> I have installed the pppd package. This seems to run a user space version
> of pppd different to the one run by the default installation. I did this
> because I needed to restrict mtu to 1400 to tunnel through a firewall and
> the default pppd doesn't seem to honor mtu statements.
>
> What I would like to do now is have pppd keep my existing dns server in
> resolv.conf as well as add one it gets from the ISP when it connects
> (pppoe over ADSL).
>
> I have been playing with the usepeerdns option but it doesn't seem to make
> any difference.
>
> Any suggestions re how to achieve this?
>
The stuff that matters resides in /etc/dhcp3/, there is a file called
dhclient.conf in there, add to it a line like:
prepend domain-name-servers 127.0.0.1
with the address of the name server you want to add in place of the 127.0.0.1.
That should do it.
Hope it helps,
Jorge
More information about the ubuntu-users
mailing list