<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 13/01/2019 13:53, Hans-Cees Speel via Unbound-users wrote:<br>
<blockquote type="cite"
cite="mid:e546da04-1f50-a97e-7841-dffd33d3aca5@hanscees.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hello,</p>
<p><br>
</p>
<p>as stated here <br>
</p>
<p><a class="moz-txt-link-freetext"
href="https://nlnetlabs.nl/documentation/unbound/unbound-control/"
moz-do-not-send="true">https://nlnetlabs.nl/documentation/unbound/unbound-control/</a></p>
<p><br>
</p>
<p>You can add resource records and zones like this to unbound:<br>
</p>
<p>sudo unbound-control local_data canon3.hanscees.con A
192.168.0.63<br>
</p>
<p>This works fine. But how can I make sure these data do not
disappear after a reboot? <br>
</p>
<p><br>
</p>
<p>Should I thus:</p>
<p>1- add them to the config file (to make them stick forever)<br>
</p>
</blockquote>
<br>
<a class="moz-txt-link-freetext" href="https://nlnetlabs.nl/documentation/unbound/unbound.conf/">https://nlnetlabs.nl/documentation/unbound/unbound.conf/</a><br>
<br>
local-data: "<resource record string>"<br>
Configure local data, which is served in reply to
queries for it.<br>
The query has to match exactly unless you configure the
local-zone<br>
as redirect. If not matched exactly, the local-zone
type deter-<br>
mines further processing. If local-data is configured
that is not<br>
a subdomain of a local-zone, a transparent local-zone
is config-<br>
ured. For record types such as TXT, use single
quotes, as in<br>
local-data: 'example. TXT "text"'.<br>
<br>
If you need more complicated authoritative data, with
referrals,<br>
wildcards, CNAME/DNAME support, or DNSSEC
authoritative service,<br>
setup a stub-zone for it as detailed in the stub
zone section<br>
below.<br>
<br>
<br>
<blockquote type="cite"
cite="mid:e546da04-1f50-a97e-7841-dffd33d3aca5@hanscees.com">
<p> </p>
<p>2- add them via control-client to the server? (to make them
available without a reload)<br>
</p>
<p><br>
</p>
<p>Thanx<br>
</p>
<p><br>
</p>
<div class="moz-signature">-- <br>
Vriendelijke groet, Hans-Cees Speel (<a
class="moz-txt-link-abbreviated"
href="mailto:hanscees@hanscees.com" moz-do-not-send="true">hanscees@hanscees.com</a>)<br>
<br>
* Eigenaar <a href="http://www.bomengids.nl"
moz-do-not-send="true">bomengids.nl</a> (<a
href="http://twitter.com/bomengidsnl" moz-do-not-send="true">volg
twitter</a>) <br>
* Hoofd I&A Jeugdbescherming Gelderland en VeiligThuis
<ul>
<li> <a href="http://energie-weezenhof-bhw.blogspot.nl/"
moz-do-not-send="true">Blog met tips hoe wij onze huizen
energiezuinig maken</a> </li>
<li> <a
href="https://weezenhofmakkelijkemoestuin.wordpress.com/"
moz-do-not-send="true"> Blog over onze
buurt-makkelijke-moestuin Weezenhof </a></li>
</ul>
<a href="https://weezenhofmakkelijkemoestuin.wordpress.com/"
moz-do-not-send="true"> * </a><a
href="http://nl.linkedin.com/in/hanscees"
moz-do-not-send="true">Linked-in profile Hans-Cees</a><br>
</div>
</blockquote>
<br>
</body>
</html>