OPNsense Forum

English Forums => General Discussion => Topic started by: adhossain on May 02, 2024, 08:59:43 PM

Title: LAN is unable to DNS resolution
Post by: adhossain on May 02, 2024, 08:59:43 PM
Hi, I am very very new to the OPNSense system. I was using OpenWrt for many years and thought to switch to OPNSense.

So my WAN connection is a DHCP connection which is bound to the MAC address.
During setup of OPNsense, I used Wizard to configure OPNsense router and provided the old MAC to the WAN port and continued to the wizard for setting up LAN and the rest of the operation.

But after configuring, I an not able to access internet from LAN. I can ping from my LAN to 8.8.8.8 or any public IP and my OPNsense router is also able to update firmware that means WAN is working fine. But my LAN is unable to resolute DNS.

Please help me showing right way
Title: Re: LAN is unable to DNS resolution
Post by: cookiemonster on May 02, 2024, 11:18:02 PM
https://docs.opnsense.org/
You need to move to setup DHCP and DNS with Unbound or DNSmasq if you want. Otherwise with only DHCP set, the clients will get their ip from OPN and have OPN as their gateway and the DNS queries will go out to what you set in System > Settings > General. Nothing set there will cause OPN to send the queries to the DNS servers received by WAN DHCP, typically your ISP's given ones.