[PATCH] resolv.conf addition for mobile users
Jean Tourrilhes
jt at bougret.hpl.hp.com
Mon Jun 21 17:16:07 UTC 2004
On Mon, Jun 21, 2004 at 08:50:25AM +0200, Guido Roeskens wrote:
> Hello,
>
> That's one point. Bind normally is seen as the DNS server.
> - You'd have to change a lot in libresolv and lwres.
> - The OS libraries would have to take up these changes
>
> On the other hand this is a user land problem.
I'll stop you there.
Both libresolv and lwres assume a *STATIC*
/etc/resolv.conf. They read it once and use it for all subsequent
resolution. However, if the OS changes /etc/resolv.conf, this
assumption is plain invalid and need to be fixed.
This is the bulk of my patch (dynamic_config). The rest is
only optional eye candy.
That's the issue. Everybody assume it works, but nobody
bothered to check.
> - OSX and Windows handle this in userland or "half-userland".
> - pppd (at least on linux and *BSD) configuration can be tuned
> wheter to overwrite /etc/resolv.conf or not.
> - Redhat uses its network scripts (ifup and friends), Debian and other
> distros have similar scripts.
> You can adapt them to your needs (specific) or add similar options
> like you sugessted in a generic way.
> - for the Redhat example: in /etc/sysconfig/network(ing?) you have
> config files for the interfaces. you can add your changes there and
> adapt the ifup/ifdown scripts to use your new configuration items.
I already explained what the problem where with these. But it
doesn't matter as none of this addresses the core issue (the static
versus dynamic issue).
> Guido
Regards,
Jean
More information about the bind-users
mailing list