All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: multiple pppd instances -- resolv.conf challenges and suggested improvement
Date: Wed, 28 Jan 2015 14:39:24 +0000	[thread overview]
Message-ID: <54C8F49C.30104@workingcode.com> (raw)
In-Reply-To: <68DDEA33-3E3A-456B-BFF4-14209A181864@nowonline.co.uk>

On 01/26/15 13:32, Lee Essen wrote:
> Hi Bill,
> 
> Thanks for the reply, I acknowledge that the buildroot approach is suboptimal, however it doesn't seem right that every instance of pppd will write to the same file regardless or what you choose to do with it!
> 
> In order to get clever (prioritise for example) with multiple instances I need to use either separate resolv.conf files, or do the work in the ppp-up script. The latter approach is perfectly acceptable, however having all the pppd processes overwriting the same resolv.conf file in a completely non-deterministic way seems wrong to me??
> 
> I realise that my particular problem with buildroot is more problematic than non-buildroot people would experience (and I'm quite happy to solve it with my proposed patch) but I thought it worth suggesting.

(Note: I'm a maintainer on the Solaris side, I haven't a clue what
"buildroot" might be.)

What you're asking for already exists.  Let them overwrite
/etc/ppp/resolv.conf, and just ignore that file.  It doesn't matter and
its contents are irrelevant.

Create an /etc/ppp/ip-up script, and put all of your clever logic there.
 The DNS server addresses will be given to you as $DNS1 and $DNS2, and
you can use this to create or modify the real /etc/resolv.conf as
desired.  The variables will be left unset if an address wasn't given.
(This weird Microsoft extension gives you two addresses.  No, I don't
know why it's specifically two addresses and not a list, nor why this
was done down at the link layer rather than a simple stateless DHCP
INFORM message.)

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

      parent reply	other threads:[~2015-01-28 14:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26 16:29 multiple pppd instances -- resolv.conf challenges and suggested improvement Lee Essen
2015-01-26 16:57 ` Bill Unruh
2015-01-26 18:32 ` Lee Essen
2015-01-28 14:39 ` James Carlson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C8F49C.30104@workingcode.com \
    --to=carlsonj@workingcode.com \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.