Subject: Re: Setting up pppoe
To: None <netbsd-users@netbsd.org>
From: Klaus Heinz <klaus.heinz@onlinehome.de>
List: netbsd-users
Date: 04/12/2002 16:58:39
ipthomas@mac.com wrote:
> There is, however, one problem that I haven't found a solution for
> yet. I have the option USEPEERDNS set, but /etc/resolv.conf is not
> being filled in with Verizon's DNS server IP's. I can leave my
> college's DNS severs in it, but I'd like to use Verizon's. OS X has no
Regarding DNS, I have this in /etc/ppp/pppoe.conf
DNSTYPE=SERVER
USEPEERDNS=yes
DNS1=
DNS2=
If DNSTYPE is 'SERVER' rp-pppoe creates /etc/resolv,conf as a link to
/etc/ppp/resolv.conf, which is created by pppd when pppd gets the
option 'usepeerdns'.
Please check (ps -auxww | grep pppd) whether your pppd got the 'usepeerdns'
option (via USEPEERDNS=yes in pppoe.conf) and whether /etc/ppp/resolv.conf
contains your name server IP-addresses.
If you like, you can also set 'PPPD_EXTRA="debug"' in pppoe.conf and
pppd will show you some debug output via syslog. To see this, you have to
(temporarily) add this to /etc/syslog.conf:
daemon.debug /var/log/daemon.log
create /var/log/daemon.log (touch /var/log/daemon.log) and send a HUP
signal to the 'syslogd' process (/etc/rc.d/syslogd reload).
After you establish your DSL connection you should see (among other lines)
something like:
rcvd [IPCP ConfNak id=0x3 <addr w.x.y.z> <ms-dns1 a.b.c.d>
<ms-dns3 e.f.g.h>]
in /var/log/daemon.log. ms-dns1 and ms-dns3 should be the name server
addresses pppd puts into /etc/ppp/resolv.conf.
Maybe you want to remove the 'daemon.debug' entry from /etc/syslog.conf
and PPPD_EXTRA=debug when your done, otherwise the log file will grow
indefinitely.
ciao
Klaus