Hi.
I would like configure BIND to have DNS server which will be accesiblity only from my local network for homelab purpose. For this I have installed os-bind, disable unbound and configure forwarders servers. My machines which in my local network are succesfully resolve all domains.
For this topic I will use example.com domain which is globally accessible, and I will use it to set A record to point 192.168.100.1. To be clear, this is only for my homelab purpose and I dont know anything about configuring BIND service. Please advice what I doing wrong
This is how my configuration looks like:
(https://i.ibb.co/4P4k747/bind-global.png) (https://ibb.co/3BSK7S7)
(https://i.ibb.co/QvJcFP7/bind-zones.png) (https://ibb.co/HTK2DtL)
And dig command looks like that:
Quotedig @10.0.248.1 example.com
; <<>> DiG 9.16.1-Ubuntu <<>> @10.0.248.1 example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 32439
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: cc55c668d47a8d4401000000627639231f7bff45bbe8d6a7 (good)
;; QUESTION SECTION:
;example.com. IN A
;; Query time: 0 msec
;; SERVER: 10.0.248.1#53(10.0.248.1)
;; WHEN: Sat May 07 11:17:23 CEST 2022
;; MSG SIZE rcvd: 68