<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Georgia,Palatino,serif'>
<p>Hello,</p>
<p>I have setup unbound dns server for my home network. It can resolve the dns query to my local computer when I write the dns info in unbound.conf file, like the following setting.</p>
<div style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;">
<div><span style="color: #d4d4d4;"> </span><span style="color: #6a9955;"># include: "/usr/local/etc/unbound/z.lan.conf"</span></div>
<div><span style="color: #d4d4d4;"> local-zone: </span><span style="color: #ce9178;">"z.lan."</span><span style="color: #d4d4d4;"> static</span></div>
<br />
<div><span style="color: #d4d4d4;"> local-data: </span><span style="color: #ce9178;">"corebox.z.lan. IN A 192.168.1.150"</span></div>
<div><span style="color: #d4d4d4;"> local-data-ptr: </span><span style="color: #ce9178;">"192.168.1.150 corebox.z.lan"</span></div>
</div>
<p>But it takes several minutes to be effective.</p>
<p>When I write the dns info with include directive. It cannnot work.</p>
<div style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;">
<div><span style="color: #d4d4d4;"> include: </span><span style="color: #ce9178;">"/usr/local/etc/unbound/z.lan.conf"</span></div>
<div><span style="color: #d4d4d4;"> </span><span style="color: #6a9955;"># local-zone: "z.lan." static</span></div>
<br />
<div><span style="color: #d4d4d4;"> </span><span style="color: #6a9955;"># local-data: "corebox.z.lan. IN A 192.168.1.150"</span></div>
<div><span style="color: #d4d4d4;"> </span><span style="color: #6a9955;"># local-data-ptr: "192.168.1.150 corebox.z.lan"</span></div>
</div>
<p>Here is what inside the z.lan.conf file.</p>
<div style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;">
<div><span style="color: #d4d4d4;">local-zone: </span><span style="color: #ce9178;">"z.lan."</span><span style="color: #d4d4d4;"> static</span></div>
<br />
<div><span style="color: #d4d4d4;">local-data: </span><span style="color: #ce9178;">"corebox.z.lan. IN A 192.168.1.150"</span></div>
<div><span style="color: #d4d4d4;">local-data-ptr: </span><span style="color: #ce9178;">"192.168.1.150 corebox.z.lan"</span></div>
<br />
<div><span style="color: #d4d4d4;">local-data: </span><span style="color: #ce9178;">"bt.z.lan. IN A 192.168.1.150"</span></div>
<div><span style="color: #d4d4d4;">local-data-ptr: </span><span style="color: #ce9178;">"192.168.1.150 bt.z.lan"</span></div>
<br />
<div><span style="color: #d4d4d4;">local-data: </span><span style="color: #ce9178;">"plex.z.lan. IN A 192.168.1.148"</span></div>
<div><span style="color: #d4d4d4;">local-data-ptr: </span><span style="color: #ce9178;">"192.168.1.148 plex.z.lan"</span></div>
<br />
<div><span style="color: #d4d4d4;">local-data: </span><span style="color: #ce9178;">"nas.z.lan. IN A 192.168.1.111"</span></div>
<div><span style="color: #d4d4d4;">local-data-ptr: </span><span style="color: #ce9178;">"192.168.1.111 nas.z.lan"</span></div>
</div>
<p>Here is where the config files locate.</p>
<div style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;">
<div><span style="color: #d4d4d4;">robot@corebox:/usr/local/etc/unbound $ ls -alh</span></div>
<div><span style="color: #d4d4d4;">total 116</span></div>
<div><span style="color: #d4d4d4;">drwxr-xr-x 2 unbound wheel 512B Dec 30 10:04 .</span></div>
<div><span style="color: #d4d4d4;">drwxr-xr-x 13 root wheel 512B Nov 28 04:43 ..</span></div>
<div><span style="color: #d4d4d4;">-rw-r--r-- 1 unbound wheel 3.2K Nov 12 00:54 named.root</span></div>
<div><span style="color: #d4d4d4;">-rw-r--r-- 1 unbound wheel 758B Dec 30 10:04 root.key</span></div>
<div><span style="color: #d4d4d4;">-rw-r--r-- 1 root wheel 44K Dec 30 00:00 unbound.conf</span></div>
<div><span style="color: #d4d4d4;">-rw-r--r-- 1 root wheel 43K Nov 17 17:34 unbound.conf.sample</span></div>
<div><span style="color: #d4d4d4;">-rw-r--r-- 1 unbound unbound 6B Dec 6 02:23 unbound.pid</span></div>
<div><span style="color: #d4d4d4;">-rw-r--r-- 1 root wheel 384B Dec 30 00:05 z.lan.conf</span></div>
</div>
<p>What is wrong with my configuration? Can someone help me?</p>
<p><br /></p>
</body></html>