Bug 7988 - DNS configuration overwritten when using on demand ppp
Summary: DNS configuration overwritten when using on demand ppp
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ppp
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-12-25 09:05 UTC by Lewis Foti
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-01-20 00:20:07 UTC

Attachments (Terms of Use)

Description Lewis Foti 1999-12-25 09:05:42 UTC
I'm setting up a gateway box to connect my home network to the
'net via an ISDN line using ip masquerading (ipchains) and ppp (pppd) with
on demand dialing. Doing this using linuxconf this has proved relatively
easy except for configuring the DNS servers to be used. The goal is to
have a local DNS for my home network (running on the 10.x.x.x address
range) and use the ISP DNS servers for the real world. After exiting
linuxconf the /etc/resolve.conf file has the following entries.

nameserver                  # local DNS
nameserver              # ISP DNS1
nameserver              # ISP DNS2

This points DNS requests to my local box with the ISPs DNS servers as
alternatives. However after a reboot the contnents of the file has changed
to remove the local entry so the entries are as follows.

nameserver              # ISP DNS1
nameserver              # ISP DNS1
nameserver              # ISP DNS2

The result is that all DNS requests go the ISP DNS servers (which is slow)
and these don't know anything about my home network (which is both good and

Tracking things through the network configuration stuff the changes to
resolve.conf are made in /etc/sysconfig/network-scripts/ifup-ppp and are
controlled by a variable called PEERDNS. If this is not set to "no" then
resolve.conf is overwritten. Unfortunately I cannot find out where this
variable is actually set. Nothing in linuxconf seems to relate to this.

Comment 1 Henri J. Schlereth 2000-01-03 17:33:59 UTC
This issue affected me as well when it over-wrote the resolv.conf every
time. The solution is to remove usepeerdns from ifup-ppp, so I think this
is more an issue with initscripts(which provides ifup-ppp) than ppp.

Comment 2 Nalin Dahyabhai 2000-01-20 00:20:59 UTC
This behavior is changed in initscripts-4.83-1, which should be showing up in
Raw Hide within the week.  Please reopen this bug if you continue to have

Note You need to log in before you can comment on or make changes to this bug.