<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 12/21/22 13:29, Daisuke HIGASHI
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAO-L_V91FYj2740=c+r9S6GsqP7NT7J4FMGt03LaA7XktDgLVA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto"> Unbound has some function to load local data
dynamically such as "local-data" configuration or RPZ, or
modifying DNS response with Python script. So if somebody
(including me) wants to load hosts file to Unbound, they will
just write a script that _fulfills their requirements_. </div>
<div dir="auto"><br>
</div>
<div dir="auto"> I understand that ability to loading /etc/hosts
as local data (by just giving /etc/hosts path) is useful for
some people, but I don't know how the function should be and
fulfills many users' requirements. Needs to add PTR records?
Needs to add some domain suffix? <br>
</div>
</blockquote>
<p>Yes, reverse PTR record back to primary name would be nice.
Domain suffix should not be necessary. /etc/hosts allows aliases,
so you can have line like "10.0.0.1 primary.example.com primary".
That would make primary.example.com a primary fully qualified
domain name. And "primary." just an alias without matching PTR
record. Either just address or even CNAME to primary.example.com.</p>
<p>It seems to me it could be a special implementation of Cache DB
module. I admit I have never tried to use CacheDB module yet.<br>
</p>
<blockquote type="cite"
cite="mid:CAO-L_V91FYj2740=c+r9S6GsqP7NT7J4FMGt03LaA7XktDgLVA@mail.gmail.com">
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Petr Menšík via
Unbound-users <<a
href="mailto:unbound-users@lists.nlnetlabs.nl"
moz-do-not-send="true" class="moz-txt-link-freetext">unbound-users@lists.nlnetlabs.nl</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex" dir="auto">Hi
everyone,<br>
<br>
Is there some plugin for automatically watching /etc/hosts
file for <br>
changes and loading them as a local data?<br>
</blockquote>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Petr Menšík
Software Engineer, RHEL
Red Hat, <a class="moz-txt-link-freetext" href="https://www.redhat.com/">https://www.redhat.com/</a>
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB</pre>
</body>
</html>