see my comments below ...<br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 8:18 AM, Joseph S D Yao <span dir="ltr"><<a href="mailto:jsdy@tux.org">jsdy@tux.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Feb 02, 2010 at 12:50:56AM +0100, fddi wrote:<br>
> Hello,<br>
> I need to setup a local named configuration so that ANY request will be<br>
> resolved<br>
> to a specific single IP only.<br>
><br>
> I mean any kind of DNS resolutin request<br>
><br>
> <a href="http://www.luth.se" target="_blank">www.luth.se</a><br>
> <a href="http://www.isc.org" target="_blank">www.isc.org</a><br>
> www.anything.tld<br>
><br>
> should be resolved in 172.16.30.30 for example<br>
<br>
<br>
</div>zone "." {<br>
type master;<br>
file "zone.root";<br>
};<br>
<br>
zone.root:<br>
@ SOA ...<br>
NS localhost<br></blockquote><div>localhost A 127.0.0.1 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
* A 172.16.30.30<br>
<br>
NOTE: this does exactly what you asked. And may have unexpected<br>
consequences [as in, be careful what you ask for; you may get it]. For<br>
instance, this had better be the name server, as well! NO OTHER IP<br>
ADDRESS IN THE ENTIRE WORLD will be resolved. </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Unless you add domains on this same name server.<br></blockquote><div><br>Correct .. but as you say you just add domains on the same name server. Simple make the NS the localhost and assign localhost the A record of 127.0.0.1. Or lets say the name server is at 172.16.30.31 then you can do as follows<br>
<br> NS <a href="http://any.domain.name">any.domain.name</a><br><a href="http://any.domain.name">any.domain.name</a> A 172.16.30.31<br>* A 172.16.30.30<br><br>That will work too.<br><br>regards<br>
joe baptista<br><br></div></div><br>