Hello,
after searching an debugging the ifup process, I found the culprit for not taking over the
dns_options!
In added in the file /etc/network/if-up.d/000resolvconf the following 4 lines:
>if [ "$IF_DNS_OPTIONS" ] ; then
> R="${R}options $IF_DNS_OPTIONS
>"
>fi
This scriptlet is finally called to write the new resolv.conf. Before other processes parse
/etc/network/interfaces and populate the environment with several $DNS_... variables.
But this scriptlet is just not writing this out to resolv.conf.
Wolfgang
------
In Antwort auf die folgende Mail
From: terryc <terryc@???>
To: dng@???
Cc: "devuan-list@???" <Postmaster>
Subject: Re: [DNG] resolv.conf gets not updated from /etc/network/interfaces
Date: Wed, 23 Oct 2024 12:42:46 +1100
On Sun, 20 Oct 2024 19:06:03 +0200
Wolfgang via Dng <dng@???> wrote:
> Hello,
>
> after replacing several debian installations with devuan, I fight
> with resolv.conf. How can I make it happen, that all dns- related
> configuration entries are taken over to /etc/resolv.conf?
>
> I have entries like: dns-search, dns-options, dns-nameserver which
> are not taken over during boot or network restart into resolv.conf.
>
> For systems with static interfaces it is possible to put those
> entries into /etc/resolvconf/resolv.conf.d/head,
> but that is a bad workaround for systems with static configuration.
>
> Thanks for helpful hints/links/infos
>
> Wolfgang
Well, all my PC systems are static and long ago I moved(copied) the dns
entries from /etc/network/interfaces to /etc/resolv.conf.
This may only matters if you use VPN's.
Using a script provided by a commercial to start ans top the VPN, the contents are moved aside at the start of
the session and moved back at the end of the session.YMMV.
If you use openvpn, then you create up and down entries in the
scripts. I cheated on one server to get stuff going and just have
nameserver 9.9.9.9
nameserver 1.1.1.1
It works. Fixing it is on the to-do list.
terryc
write
something into the
\
_______________________________________________
Dng mailing list
Dng@???
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng