Mental on Sun, 21 Nov 1999 15:32:33 -0500 (EST)


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

Re: [Plug] pppd and auto DNS


The only time I've done stuff like that is with pump and dhcp. I never 
cared enough to look into it for dialups. Check out the pump software
or the pppd man pages. Beyond that, you may have to write something.
That, and I havent had to setup a dialup in a while now. I forget a 
lot of the details.



Mental
--


On Sun, 21 Nov 1999, Joshua Mazess wrote:

> Is there any way I can capture the DNS servers negotiated in the PPP connection and
> update resolv.conf with that information? I want it to be automatic, like Windows.
> 
> Mental wrote:
> 
> > It can handle it fine, but if you're unwilling to change your
> > resolv.conf then I dont see how you're going to get it to work.
> >
> > Here's how I did it. Modify your dialup script to touch a file. I
> > put mine in /etc/ppp/$connectionname. Then modify /etc/ppp/ip-up to
> > test the existance of /etc/ppp/$connectionname. Depending on what it
> > finds (a simple case switch would work, read your init scripts), copy
> > resolv.provider to resolv.conf. Then modify /etc/ppp/ip-down to clean
> > up.
> >
> > If you're unwilling to do that, search freshmeat or see what tools your
> > distro comes with. RedHat came with a dialup tool doodad that seemed to
> > work fine for this also.
> >
> > Mental
> > --
> >
> > "you make insanity respectable."
> > --Helcat on the subject of Mental.
> >
> > On Mon, 15 Nov 1999, Joshua Mazess wrote:
> >
> > > The problem is that one of my "ISP"'s is a protected, firewalled network with DNS
> > > servers in a demilitarized zone, which can only be used while connected to that
> > > provider. I have to use one set of DNS servers for my regular ISP and another set
> > > for the protected network. And again, I don't want to change resolv.conf files each
> > > time I dial up. Windows can handle dynamic DNS without any problem. Why not Linux?
> > > --Josh
> > >
> > > LeRoy D. Cressy wrote:
> > >
> > > > In either the /etc/ppp/options file or on the command line make sure that
> > > > defaultroute is either specified or uncommented.  This will make your isp's box
> > > > as the default gateway.  Also you can add your isp's DNS server addresses as
> > > > forwarders in your DNS configuration.
> > > >
> > > > Josh Mazess wrote:
> > > > >
> > > > > All,
> > > > > How do you get pppd to auto-configure DNS in Red Hat Linux 5?
> 
> 
> _______________________________________________
> Plug maillist  -  Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
> 


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug