I can test my zone files with named-checkzone, and it looks ok.45.20.10.in-addr.arpa.zone zone file (reverse DNS):$TTL 30@ IN SOA localhost. admin.example.com (2017080101  ;serial3H      ;refresh1H      ;retry2H      ;expire1M)     ;neg ttl@ IN NS localhost.;;generate 1-254$GENERATE 1-254 $ IN PTR host$.example.comexample.com.zone zone file:$TTL 30@ IN SOA localhost. admin.example.com. (2017072702  ; serial3       ; refresh1       ; retry2       ; expire1M)     ; negative TTL            IN NS localhost.;www.example.com.    IN A 192.168.111.45www.example.com.    IN AAAA fe80::22c9:d0ff:1ecd:c0effoo.example.com.    IN A 192.168.121.11bar.example.com.    IN CNAME www.example.com.;generate 100 hosts$GENERATE 1-100 host$.example.com. IN A 10.20.45.$I can test the zone file with the dig command like so dig @localhost -t A www.example.com.I can also test the reverse zone file like so host 10.20.45.55 localhost.In the man page of the host command it is said that one could also test like so host host55.example.com localhost, but this yields an error message:Using domain server:Name: localhostAddress: 127.0.0.1#53Aliases: Host host55.example.com not found: 2(SERVFAIL)I am clueless about why that does not work. Any help and explanation would be great.
Why host command works for reverse DNS testing but not otherwise?
linux;dns;bind