On 25/1/25 10:01, Greg Choules wrote:

I just looked in the source for 9.0.0, released nearly 25 years ago, to see what was there because I was curious. There is no file called “db.local": here’s the link if you want to check for yourself: https://downloads.isc.org/isc/bind9/9.0.0/ Every release since then is also available to download, should you want to check them all. So the fact that you *do* have a file called “db.local", I think means nothing. Anyone could have created that for some purpose only they knew at the time.

ftr ubuntu also ships bind with a db.local file

$ cat  /etc/bind/db.local
;
; BIND data file for local loopback interface
;
$TTL    604800
@    IN    SOA    localhost. root.localhost. (
                  2        ; Serial
             604800        ; Refresh
              86400        ; Retry
            2419200        ; Expire
             604800 )    ; Negative Cache TTL
;
@    IN    NS    localhost.
@    IN    A    127.0.0.1
@    IN    AAAA    ::1

$ ls /etc/bind
total 76K
drwxr-sr-x   2 root bind 4.0K Jan 11 08:25 ./
drwxr-xr-x 132 root root  12K Jan 25 09:29 ../
-rw-r--r--   1 root root 2.4K Jul 17  2024 bind.keys
-rw-r--r--   1 root root  237 Dec 17  2019 db.0
-rw-r--r--   1 root root  271 Dec 17  2019 db.127
-rw-r--r--   1 root root  237 Dec 17  2019 db.255
-rw-r--r--   1 root root  353 Dec 17  2019 db.empty
-rw-r--r--   1 root root  270 Dec 17  2019 db.local
-rw-r--r--   1 root bind  463 Dec 17  2019 named.conf
-rw-r--r--   1 root bind  498 Dec 17  2019 named.conf.default-zones
-rw-r--r--   1 root bind 7.4K Dec 29 09:17 named.conf.local
-rw-r--r--   1 root bind 1.3K Oct 10 09:02 named.conf.options
-rw-r-----   1 bind bind  100 Feb 20  2021 rndc.key
-rw-r--r--   1 root root 1.3K Dec 17  2019 zones.rfc1918

$ uname -a
Linux example.com 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

don't know how that helps but a few distributions seem to ship db.local

cheers phil


C:\MyProgs\BIND\etc>more db.local
;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                             2         ; Serial
                        604800         ; Refresh
                         86400         ; Retry
                       2419200         ; Expire
                        604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
@       IN      AAAA    ::1

C:\MyProgs\BIND\etc>

and here's my modified copy of db.local on my Debian machine (I added
the two wildcard lines for .localhost.)

lee@spot /etc/bind
$ cat db.local
;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                             3         ; Serial
                        604800         ; Refresh
                         86400         ; Retry
                       2419200         ; Expire
                        604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
@       IN      AAAA    ::1

*       IN      A       127.0.0.1
       IN      AAAA    ::1


lee@spot /etc/bind
$ dig +short foo.bar.localhost aaaa
::1

lee@spot /etc/bind
$ grep db.local *
named.conf.default-zones:       file "/etc/bind/db.local";

lee@spot /etc/bind
$


Regards,
Lee



--
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@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to