I'm setting up a dns server in a vm with Ubuntu 18.06 for school and I encounter strange behaviour when forwarding a request which my server is not authoritative for. My server asks the dns server in spcified in named.conf.options
in forwarders
. Even though it receives a correct response resolving the query, my server replies server failure to my client.
My server is able to resolve queries regarding the zones which it is authoritative for but not external domains.
Content of named.conf.options
:
options {
directory "/var/cache/bind";
forwarders {
8.8.8.8;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
I have tried adding
allow-recursion { any; };
allow-query { any; };
allow-query-cache { any; };
but it didn't change the behaviour.
I've also tried:
- reinstalling bind9
- reinstalling the whole os
- switching to Ubuntu 16.04
- removing zone configuration
- different combinations of what's stated above
I've also read somewhere it could be due to security configurations in my router but I don't know how or if I should touch that.
Can someone help me fix this?
Edit logging file contents:
29-May-2021 15:47:35.187 resolver: notice: DNS format error from 192.112.36.4#53 resolving ./NS: non-improving referral
this line a bunch of times with different IPs. I'm guessing they're the root servers.