OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: AndyX90 on December 04, 2019, 10:04:59 am

Title: Unbound - DNS Overrides
Post by: AndyX90 on December 04, 2019, 10:04:59 am
Hey guys,

i still have problems with Unbound and DNS-Overrides.
It persists since my last Thred (https://forum.opnsense.org/index.php?topic=7252.0 (https://forum.opnsense.org/index.php?topic=7252.0)).

But last week i made an important discovery.
I had a setup with wan on dhcp and set up domain and host overrides. Worked like a charm.
But then i changed the wan to pppoe and since then the overrides stopped working correctly.
I tried to disable "allow dns to be overridden by pppoe" and set static upstream dns, but without luck.

Any ideas?
Title: Re: Unbound - DNS Overrides
Post by: AndyX90 on December 07, 2019, 06:38:04 pm
If i go to Interfaces->Diagnostics->DNS-Lookup and insert a hostname of the overriden domain, i get randomly different results:
(https://i.imgur.com/63CApR4.png)

(https://i.imgur.com/YWb85gB.png)

If i look at the generated overrides in conf, there is the ending .(dot) missing in the zone name.
In opnsense the zone name is
Quote
forward-zone:
name: "example.com"
forward-addr: 10.0.0.1
The fqdn of the overridden domain should be example.com.(dot)
The guys at archlinux also use that syntax in their documentation (https://wiki.archlinux.org/index.php/unbound#Include_local_DNS_server).
There is also someone over at pfsense who is talking about a similar problem.
https://redmine.pfsense.org/issues/9189