OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: rookysteed on May 02, 2024, 03:48:31 PM

Title: Enabling dnsmasq and unbound on port 53 BUT separate interface = issue ?
Post by: rookysteed on May 02, 2024, 03:48:31 PM
hi,

i need to give hostname.domain with ip 192.168.1.10 on interco.wan interface AND hostname.domain with 10.10.10.10 on lan interface.

So i need to have the equivalent of "BIND views" (custom DNS solving for each interface)  for unbound : but there is no options do to that with gui.

So i decide to use dnsMasq strict binding option on interco.wan (port 53) only, then bind unbound binding on lan interface (port 53 too) ... but it's conflicting.
Is this an known issue ?

thank you for reading me.
Title: Re: Enabling dnsmasq and unbound on port 53 BUT separate interface = issue ?
Post by: rookysteed on May 04, 2024, 12:25:52 PM
is it a strange question ?
Title: Re: Enabling dnsmasq and unbound on port 53 BUT separate interface = issue ?
Post by: tong2x on May 04, 2024, 03:29:18 PM
2 DNS server needs 2 different ports
unbound 53
dnsmas 54(assuming unused)

then you create rule in your firewall in one of your lan segment 2
1) to accept port 54
2) a port forward lan segment 2 address dns to firewall port 54

you run 2 dns server on different port, 1 of your lan segment will then portforward dns query to your secondary dns server.
this works as I am doing it, 1 dns for local lan and 1 dns for wifi

you can run 2 dns on same firewal using the same port