Resolve any query to same IP address

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


Thanks for the answer. Worked here.

Thanks!




Em qua., 21 de jul. de 2021 às 12:23, Kevin Darcy via bind-users <
bind-users at lists.isc.org> escreveu:

> [ Classification Level: GENERAL BUSINESS ]
>
> Dot "." instead of asterisk "*" as the zone name. Remove the "hint" zone,
> since that doesn't apply when you host your own root zone.
>
> You need a proper MNAME for the SOA RR too.
>
>                                     - Kevin
>
> On Wed, Jul 21, 2021 at 11:18 AM Jeronimo <jscmenezes at gmail.com> wrote:
>
>> 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
>>
>> _______________________________________________
>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to
>> unsubscribe from this list
>>
>> ISC funds the development of this software with paid support
>> subscriptions. Contact us at https://www.isc.org/contact/ for more
>> information.
>>
>>
>> bind-users mailing list
>> bind-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind-users
>>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to
> unsubscribe from this list
>
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20210721/1c99b7f8/attachment.htm>


More information about the bind-users mailing list