I've installed and set up the bind9 DNS server on UbuntuServer 22.04.3.
Then I've checked my hosts. And I have got an error:
host host1
Host host1 not found: 2(SERVFAIL)
But the reverse operation works without any problem.
host 192.168.0.16
16.0.168.192.in-addr.arpa domain name pointer host1.
My forward zone is:
;
$TTL    604800
@       IN      SOA     ns.obfuscated.com. root.ns.obfuscated.com. (
                              3         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
; name servers - NS records
@       IN      NS      ns.obfuscated.com.
; name servers - A records
ns  IN A       192.168.0.101
; 192.168.0.0/24 - A records
host3   IN A     192.168.0.201 ; 
host2   IN A     192.168.0.250 ; 
host1   IN A     192.168.0.16  ; 
The zones file is:
zone "obfuscated.com" {
        type master;
        file "/var/lib/bind/forward.bind";
        check-names ignore;
        };
zone "0.168.192.in-addr.arpa" {
        type master;
        file "/var/lib/bind/reverse.bind";
        check-names ignore;
         };
The Netplan config:
network:
  ethernets:
    ens33:
      addresses:
      - 192.168.0.101/24
      nameservers:
        addresses: [192.168.0.101, 192.168.0.1]
        search: [ obfuscated.com ]
      routes:
      - to: default
        via: 192.168.0.1
I'm positive in mistakes of the forward.bind file, but can't find them. The named-checkzone command has no errors.