<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>You could simply edit your /etc/resolv.conf, and add a domain or search directive, on each of your servers</div><div><b><div><span class="Apple-style-span" style="font-weight: normal;"># cat /etc/resolv.conf</span></div><div><div style="display: inline !important; "><span class="Apple-style-span" style="font-weight: normal;">search local </span></div></div><div><span class="Apple-style-span" style="font-weight: normal;">nameserver 127.0.0.1</span></div><div><span class="Apple-style-span" style="font-weight: normal;"><br></span></div></b></div><div># cat /etc/unbound.conf | grep "\.local"</div><div><div>    local-data: "testing.local IN A 127.0.0.5"</div><div><br></div><div># ping testing</div><div><div><div style="display: inline !important; "><div style="display: inline !important; ">PING testing.local (127.0.0.5) 56(84) bytes of data.</div></div></div><div>64 bytes from 127.0.0.5: icmp_seq=1 ttl=64 time=0.055 ms</div></div><div><br></div></div><div><b><br></b></div><div>-- Arni</div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><br></div><div><b><br></b></div><br><div><div>On Mar 24, 2011, at 8:12 PM, Steve Jenkins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>We've recently set up Unbound as a local recursive resolver, which is<br>working great. We've got a dozen or so servers on our rack across<br>three different domains, so we've been using our /etc/hosts file to<br>set up aliases for them. For example:<br><br>123.456.78.910          <a href="http://jim.domain1.com">jim.domain1.com</a> jim<br>234.567.89.012          <a href="http://doug.domain2.com">doug.domain2.com</a> doug<br>345.678.90.123          <a href="http://sally.domain3.com">sally.domain3.com</a> sally<br><br>This way, we can easily connect to local systems by simply doing "ssh<br>jim" or 'ftp sally."<br><br>The problem is that when we change a host's IP address, or add a new<br>host to the rack, we have to manually update the hosts file on EVERY<br>box, so I've been fiddling with unbound to try and make it so we only<br>have to update it in one place, and then it will act as the local<br>resolver for those IPs.<br><br>I can make it function with the following:<br><br>local-zone: "local." static<br>local-data: "jim.local.     IN A 123.456.78.910"<br>local-data: "doug.local.   IN A 234.567.89.012"<br>local-data: "sally.local.    IN A 345.678.90.123"<br><br>But it's not exactly what we want... we have to do "ping jim.local" or<br>"ssh doug.local" to connect.<br><br>Is there a way to configure unbound.conf so that it will work without<br>the ".local" ?<br><br>Thanks,<br><br>SteveJ<br>_______________________________________________<br>Unbound-users mailing list<br><a href="mailto:Unbound-users@unbound.net">Unbound-users@unbound.net</a><br>http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users<br></div></blockquote></div><br><div>
<div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-weight: 800;"><br></span></font></div></div>
</div>
<br></body></html>