Resolve any query to same IP address

Jeronimo jscmenezes at gmail.com
Wed Jul 21 15:17:29 UTC 2021


Hi,

how can I get the same IPv6 address as the answer to any query to my Bind9?

I am using Ubuntu 20 and Bind 9.11 whit configuration as bellow:

------
$ cat /etc/bind/named.conf
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
------
$ cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
recursion no;
querylog yes;
listen-on-v6 { any; };
dnssec-validation auto;
auth-nxdomain no;    # conform to RFC1035
};
------------------------
$ cat /etc/bind/named.conf.default-zones
zone "." {
     type hint;
     file "/etc/bind/db.root";
};

zone "localhost" {
     type master;
     file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
     type master;
     file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
     type master;
     file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
    type master;
     file "/etc/bind/db.255";
};

zone "*" {
     type master;
     file "/etc/bind/db.fakeroot";
};
------------------------------
$ cat db.fakeroot
$TTL 30
@ IN SOA * hostmaster.mydomain.com. (
1 ; Serial
240 ; Refresh
120 ; Retry
900 ; Expire
300 ; Negative Cache TTL
)
;
      IN NS <ipv6-local>
*     IN AAAA <ipv6-to-be-returned-to-all-querys>

Any help is welcome.

Regards,

Jeronimo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20210721/edaba308/attachment.htm>


More information about the bind-users mailing list