thank you for the precious suggestion

I just missed the * hint :)

so my configuration was almost done.

here is the final configuration and it works...
thanks to all

$TTL    86400
$ORIGIN .
@                       1D IN SOA       @ root (
                                       42              ; serial (d. adams)
                                       3H              ; refresh
                                       15M             ; retry
                                       1W              ; expiry
                                       1D )            ; minimum

                       1D IN NS        172.16.30.30
*                       IN A            172.16.30.30



Joseph S D Yao wrote:
On Tue, Feb 02, 2010 at 12:50:56AM +0100, fddi wrote:
Hello,
I need to setup a local named configuration so that ANY request will be resolved
to a specific single IP only.

I mean any kind of DNS resolutin request

www.luth.se
www.isc.org
www.anything.tld

should be resolved in 172.16.30.30 for example


zone "." {
        type master;
        file "zone.root";
};

zone.root:
@       SOA     ...
        NS      ...

*       A       172.16.30.30

NOTE: this does exactly what you asked.  And may have unexpected
consequences [as in, be careful what you ask for; you may get it].  For
instance, this had better be the name server, as well!  NO OTHER IP
ADDRESS IN THE ENTIRE WORLD will be resolved.

Unless you add domains on this same name server.


--
/*********************************************************************\
**
** Joe Yao                              j...@tux.org - Joseph S. D. Yao
**
\*********************************************************************/

_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to