<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">Op 07-02-2021 om 19:40 schreef Eric
Luehrsen via Unbound-users:<br>
</div>
<blockquote type="cite"
cite="mid:f1c006f3-0bd8-2fc9-9624-2fe0b2bfa04f@gmail.com">On
2/7/21 11:50 AM, Koos Pol via Unbound-users wrote:
<br>
<blockquote type="cite">
<br>
Thanks for the suggestion. But that's basically getting back to
fixed IP addresses, albeit centralized. And you need to maintain
it. I'm hoping for an /etc/resolv kind of behavioral switch.
<br>
</blockquote>
<br>
You can implement Tito's recommendations with a DHCP hook script.
All DHCP servers have one. This will keep maintenance to a
minimum. If static IP are handled through DHCP, then those should
be recorded also. You can write a file like "dhcp.conf" and
include it in /etc/unbound/unbound.conf. However to prevent
restarting Unbound frequently, you also should use unbound-control
to insert "local-data:" Assume Unbound is a pure recursive
resolver even though it does have a few extras. It will not append
search or default domain to a host name query. It won't have other
assumptions or shortcuts like dnsmasq or windows client.
<br>
Example from OpenWrt:
<a class="moz-txt-link-freetext" href="https://github.com/openwrt/packages/tree/master/net/unbound/files">https://github.com/openwrt/packages/tree/master/net/unbound/files</a>
(odhcpd.sh)
<br>
- Eric
<br>
</blockquote>
<br>
Thanks Eric. Apparently I'm being too naive how this all can work.
But guilty as charged, DNS is not particularly my comfort zone. I'll
see how I can make that work for my setup.<br>
<br>
Cheers,<br>
Koos<br>
</body>
</html>