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

Re: Haunting still... (need PPP help)



On Sun, Jul 25, 1999 at 04:21:46PM -0500, John Hasler wrote:
> > The problem was that I ran my own nameserver locally, and that was listed
> > first in resolv.conf.  Even with the ppp link up, I'd prefer all DNS
> > lookups to hit the local server first
> 
> You can edit the resolv.conf for each provider in /etc/ppp/resolv .

Ok, I didn't realize this.  That would be easy enough to do,
provided you didn't have dozens of peers ;)

> 
> > have the new dns numbers appended to the list, rather than replacing it.
> 
> The problem with this is that the resolver will only look at the first
> three nameserver lines.  I'd have to do some fancy parsing to decide just
> where to insert the new nameservers so that they will be useful but not in
> the way.

Yes, I realize this.  I'd probably assume that the first nameserver
listed in the file would be the main local network DNS, and insert
the ISP IP's right after that.  However, when you stop to consider
all possible variations, even that could cause problems (you
know what they say about assume).  Perhaps its best to leave it as
is.  Since most (I'm assuming again) people won't have more than
one or two peers set up, its not too much to ask for them to modify
the /etc/ppp/resolv files, if needed.  Perhaps some documentation
to that effect would be helpful...  I notice that the README.gz and
README.linux.gz files in /usr/doc/ppp make note of the usepeerdns
option, but it doesn't seem to have made it to the manpage yet.

> 
> > You might want to take a look at the source for the pcmcia modules.
> > IIRC, they insert and remove dns numbers from resolv.conf when the
> > network card is plugged in.  They use markers to delineate what they
> > added (something like '## inserted by cardmgr ##')
> 
> I try to avoid schemes like this.  They place restrictions on the file
> layout beyond those imposed by the package owner.
> 
> It seems to me that you would want your named updated to use the current
> ISP's nameservers as forwarders, but I'm not sure how to handle it.  There
> is a similar problem with nscd.  Do you have any ideas?

Not really.  I set up bind originally just because I'd never done
it before, and was curious (heh.. it took 2 days even with the
supplied examples to get it working right).  It was overkill for a
4 machine network, and I've since removed it in favor of editing
/etc/hosts on each of the machines.  Over all, I'd have to say I'm
NOT a bind expert :/

Mike

[Private mail welcome, but no need to CC: me on list replies.]

--
Michael Merten -- ironfoot@popaccount.com
          ---> NRA Life Member -- http://www.nra.org
          ---> Debian GNU/Linux Fan -- http://www.debian.org
          ---> CenLA-LUG Founder -- http://www.angelfire.com/la2/cenlalug
--
".. [Concerning the celebration of the 4th of July, 1811,]
scarcely a word was said of the solicitude and labors and fears and
sorrows and sleepless nights of the men who projected, proposed,
defended, and subscribed the Declaration of Independence. Do you
recollect your memorable speech upon the day on which the vote was
taken? Do you recollect the pensive and awful silence which pervaded
the house when we were called up, one after another, to the table of
the President of Congress to subscribe what was believed by many at
that time to be our own death warrants?..."
     -- A letter from Benjamin Rush to John Adams


Reply to: