OPNsense Forum

English Forums => General Discussion => Topic started by: Odinos on March 17, 2023, 05:34:25 PM

Title: DNS requests to LAN ip not working.
Post by: Odinos on March 17, 2023, 05:34:25 PM
Hey everyone I just replaced my dd-wrt router with a opnsense firewall and have been configuring it today.

One strange behavior that I'm noticing is that my devices are not getting a response when I set the LAN ip (192.168.0.1) as DNS server. It works fine if I set the same DNS servers as configured in opnsense but that's not ideal ofcourse.

Does opnsense need additional configuration to make this work?
Title: Re: DNS requests to LAN ip not working.
Post by: cookiemonster on March 17, 2023, 06:03:44 PM
If you want OPN to just pass the DNS requests up to its configured DNS server, like your ISP's then just the settings in system > Settings > General will be passed to DHCP clients.
Or you could set OPN to run dnsqmasq or Unbound, the two out of the box choices (there are more), and then the settings to use differ.
Tip: On OPN change on the pages to "Full help". It's a sliding button. Then most will make sense when reading those hints.
Title: Re: DNS requests to LAN ip not working.
Post by: Odinos on March 17, 2023, 06:24:49 PM
Thanks, but that is exactly what I did. I added the DNS server in general and left it empty in the DHCP. I'm also not using dnsmasq or unbound. Still the DNS requests are not being passed.

Edit: Solution was to enable dnsmasq. Not sure why.
Title: Re: DNS requests to LAN ip not working.
Post by: hushcoden on March 17, 2023, 09:51:35 PM
Enable/configure Unbound and off you go (no need to configure DNS in system -> settings -> general)