[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#299554: In dialup install, nameserver addresses are not written to resolv.conf

On Wed, Mar 30, 2005 at 08:51:33PM +0200, Thomas Hood wrote:
> On Wed, 2005-03-30 at 13:38 -0400, Tony Rowe wrote:
> The nameserver entries should be written to /etc/resolv.conf when the
> PPP interface is brought up.  /etc/ppp/ip-up.d/0dns-up does this.
Right.  No /etc/resolv.conf exists even after the interface is brought

> I don't understand.  pppconfig is run and /etc/ppp/resolv/provider is
> written; then the ppp interface is brought up; but /etc/resolv.conf is
> not written?


> > Some additional information.  It seems that dynamic DNS can be used with
> > my ISP after all <sigh>; that the correct nameserver addresses will be
> > negotiated successfully and a /etc/resolv.conf created properly (using
> > usepeerdns) as the connection is being brought up, but only if dynamic
> > DNS (rather than static DNS) is selected during the pppconfig session. 
> So /etc/ppp/ip-up.d/0000usepeerdns does succeed in
> writing /etc/resolv.conf.
Yes.  But only if "usepeerdns" gets written to /etc/ppp/peers/provider 
which is one of probably many things which pppconfig does if dynamic DNS 
is selected.
> [...]
> > Indeed
> > static DNS does work and the addresses in /etc/ppp/resolv/provider are
> > used to generate an /etc/resolv.conf as the connection is brought up if
> > an /sbin/resolvconf exists.
> So this line in 0dns-up works too:
>     /sbin/resolvconf -a "${PPP_IFACE}.pppconfig" < "$PPPRESOLV/$PROVIDER"

Well yes, I suppose it must.  I should be clear about this.  This was a
trial.  I did an apt-get install resolvconf.  Then I mv'ed my
manually-created /etc/resolv.conf out of the way.  Then I ran pppconfig
again and selected static DNS and brought the connection up.  Names then
got resolved and I confirmed that an /etc/resolv.conf was created from
the information I provided to pppconfig (whereas I had had to manually
create /etc/resolv.conf to get the resolver working previously).

> > So, if static DNS is selected in pppconfig and resolvconf exists,
> > resolvconf does something desirable that in its absence the script
> > /etc/ppp/ip-up.d/0dns-up fails to do, at least in this case.  Any
> > pointers or suggestions are welcome.
> Can you trace 0dns-up to see what goes wrong?  E.g., does
>     grep " / " /proc/mounts | grep -q " rw "
> produce a nonzero status resulting in "exit 0"?  Can you add
>     set -x
> to the top of the script and view the result?

I will get back to you on this as soon as I can.  I'm not too swift at 
this sort of thing but I'll try to get it done and get back to you 
> > Finally, this part of my bug if
> > not due to some folly of my own, seems to reside with pppconfig and not
> > with the debian-installer netinst iso as such.
> Perhaps, but let's try to find the bug before reassigning the report.
> P.S. Are you on Cape Breton?

I wish I was but no, I'm on the mainland in the big smoke: Halifax.

Tony Rowe

Reply to: