DNS Resolver and Domain Overrides
-
The Domain Overrides should end up in /var/unbound/domainoverrides.conf
Have a look in there and check that it has reasonable content.
After that, in DNS Resolver, Advanced Settings, you can set the "Log level verbosity". Then do "nslookup" from a client and see what comes in the DNS Resolver log. It might give some hints about why the resolver request is not being sent to where you expect.
So far I have only used Domain Overrides for internal domains, pointing to internal authoritative DNS servers, so I can't confirm if there is an issue with domain overrides to public DNS servers. -
Domain Overrides:
- Domain: thepiratebay.se
- IP: 199.27.135.8
I believe the entry should be in Host Override. 199.27.135.8 is a your target ip. Domain overrides specify the ip for a DNS server.
-
/var/unbound/domainoverrides.conf
stub-zone: name: "thepiratebay.se" stub-addr: 199.27.135.8 stub-prime: no
-
Yes, here are some nslookup results:
Non-authoritative answer: Name: thepiratebay.se Addresses: 2400:cb00:2048:1::c71b:8708 2400:cb00:2048:1::c71b:8608 199.27.134.8 199.27.135.8
Non-authoritative answer: Name: www.thepiratebay.se Addresses: 2400:cb00:2048:1::c71b:8608 2400:cb00:2048:1::c71b:8708 199.27.134.8 199.27.135.8
But maybe the DNS server for thepiratebay.se is at 199.27.135.8 as well as the web site itself.
-
If it is then it is down at the moment
nslookup
server 199.27.134.8
Default server: 199.27.134.8
Address: 199.27.134.8#53
thepiratebay.se
;; connection timed out; no servers could be reached -
/var/unbound/domainoverrides.conf
stub-zone: name: "thepiratebay.se" stub-addr: 199.27.135.8 stub-prime: no
That's correct if 199.27.135.8 actually answered DNS queries. It doesn't. If it ever responded with that config, it was at a time when that IP actually resolved DNS, and it doesn't now. Nothing to do with DNS Resolver or Forwarder, that's just not a valid config.
-
Hello all, the problem is solved, I changed the rule from Domain Overrides to Host Overrides and all started working again. I don't know what is wrong with Domain Overrides but now it's working
Thank You for all your help
Best Regards -
With a Domain Override you override the default DNS server with a specific one for a specific domain.
With Host Overrides you change the way you resolve domains locally.
-
From what you say, it looks that what I would what is the Domain Override, but I had to change it. In the DNS Forwarder I had it working with the Domain Override. I'll try to find the problem so that I can get it back working with the Domain Override.
Thank You
-
With the domain override, you're telling it "to lookup queries for *.thepiratebay.se, use DNS server at 199.27.135.8". Since 199.27.135.8 doesn't reply to DNS, that doesn't work.
When you add a host override for thepiratebay.se with 199.27.135.8, that tells the system "resolve thepiratebay.se as 199.27.135.8". That overrides it locally without needing any other server for resolution.
The first, as 199.27.135.8 is currently configured, would never have worked because it doesn't reply to DNS.