<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 29, 2016 at 9:50 AM, W.C.A. Wijngaards via Unbound-users <span dir="ltr"><<a href="mailto:unbound-users@unbound.net" target="_blank">unbound-users@unbound.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
Hi Hernan,<br>
<span class=""><br>
On 29/01/16 13:23, Hernan Saltiel via Unbound-users wrote:<br>
><br>
><br>
> On Fri, Jan 29, 2016 at 4:24 AM, A. Schulze via Unbound-users<br>
</span>> <<a href="mailto:unbound-users@unbound.net">unbound-users@unbound.net</a> <mailto:<a href="mailto:unbound-users@unbound.net">unbound-users@unbound.net</a>>><br>
<span class="">> wrote:<br>
><br>
><br>
> Hernan Saltiel via Unbound-users:<br>
><br>
> just to let those users connect to their PCs using DNS records, and<br>
> not IP addresses,<br>
><br>
><br>
> one possibility would be a dyndns service.<br>
><br>
><br>
> Hi Andreas, I was thinking about something that would be internally<br>
> available. Don't know if unbound could provide such a service based<br>
> on some config.<br>
<br>
</span>You could make a script to do things:<br>
unbound-control local_data_remove <name><br>
unbound-control local_data <name> A <ip4 address><br>
echo 'local-data: "<name> A <ip4address"' > somedir/<name>.loc<br>
<br>
Unbound-control instructs the running daemon what to do; the .loc<br>
files are meant for server restarts, and you include them in unbound.con<br>
f:<br>
server:<br>
include: "somedir/*.loc"<br>
<br>
An in dhcpd.conf this looks like this (from<br>
<a href="http://jpmens.net/2011/07/06/execute-a-script-when-isc-dhcp-hands-out-a-
new-lease/" rel="noreferrer" target="_blank">http://jpmens.net/2011/07/06/execute-a-script-when-isc-dhcp-hands-out-a-<br>
new-lease/</a>):<br>
on commit {<br>
set clip = binary-to-ascii(10, 8, ".", leased-address);<br>
set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)<br>
);<br>
execute("/usr/local/sbin/dhcpevent", "commit", clip, clhw,<br>
host-decl-name);<br>
}<br>
Which passes "commit" "192.0.2.1" "11:aa:bb:cc:dd:ee" "name"<br>
<br>
You might check the ip address for IPv6 and then commit 'AAAA' records<br>
instead. You can also load PTR records into unbound if you wish.<br>
<br>
Best regards, Wouter<br></blockquote><div><br></div><div>Hi Wouter!</div><div>I'll give this a try! </div><div>Thanks, and best regards,</div><div><br></div><div>HeCSa.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
<br>
> Thanks, and best regards,<br>
><br>
> HeCSa.<br>
><br>
><br>
><br>
><br>
><br>
> Andreas<br>
><br>
><br>
><br>
><br>
><br>
> -- HeCSa<br>
<br>
</span>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iQIcBAEBCAAGBQJWq2ABAAoJEJ9vHC1+BF+NqgIP/3mw0i4kszqIPZjGSjswaU3n<br>
+iQM1g1xz6cO3PLlX2Tn6RBs+vwkemBMGW0w/yAa9a48Mj/yrHc1a9sXC3Dweuo0<br>
GmTPN/oJo3SdVf4FJDz03i+rE7HfmLZ0YwC6QCOYyaFImBPojvI5dzO4SBagUZaR<br>
U3nsNuPJQLQCXle9K1EWD0tmVIWlYJxrqYUN4UYy7WXeFjGEYYPGf7uS1NRqDQAs<br>
AsRHqJKtl4mnHBSWIq8ulvE3QsXeOnrDHIMWP5VZzW+YSEV1LWuoWjGf/uqGJfn/<br>
oEgwAlSSfLLy+L1Hl/VXEPY5xF/MsRMBRxu2jLoaP38oA51SiCHRi9x4KZV6UawL<br>
gtJAGUUuhxY2ALuYzwoWQvRVWjkF/sf1+Z1iy7QamSNZu5d1a9jJ05ijAzHiE91w<br>
2FJVd5erIhjPfZ4AxlwYXYaHJ5vCqyeneH0mkRrBRmDm4AJJeOzVJ0tKrBbgB3DT<br>
k4gFzVfa190yKcfzGFYG4XuAoYLnUXtZZK4ei+tbTvhKCYpK2Ter+FjFMtoZ+2bw<br>
ip+SkcIHbISiurJ3bH+hwdXlRSTGiIAaoK/aZYP+mVfHjPw8ccEs1hQ85D2NBs5s<br>
FwVq7sQtNSuflmPWbPjt8kfO6NC1yJ/xviGmpl9K1b7zecijxwVTrZve0UMGSR+u<br>
TYBKfgUEG4RAizHew0ME<br>
=1PBc<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">HeCSa</div>
</div></div>