OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: seiya_balthazar on September 01, 2022, 10:01:08 pm

Title: DNS on fresh install not able to resolve websites
Post by: seiya_balthazar on September 01, 2022, 10:01:08 pm
Hi I'm pretty close to my answer but could use some help. I have a fresh install of OPNsense on a Qotom-Q355G4 (not sure if that will be relevant). The install went through fine and I was even able to update to 22.7.3_2 so I think that the device itself is getting DNS but it's not being passed through to my LAN. I went through the wizard to setup my DNS (screen shot attached) but I can't ping out or look up any records from my laptop.

I'm not sure what I'm doing wrong and would appreciate some help or guidance.   
Title: Re: DNS on fresh install not able to resolve websites
Post by: cookiemonster on September 01, 2022, 10:14:05 pm
yes, your lan clients need to know how to resolve dns.
One way is in services > ipv4 (assuming you are using ipv4 internally) > DNS.
That gives the client the dns to use when getting the lease, it's one of the attributes.
Or enabling Unbound or DNSMasq. Only one of these, not both.
OPN gives you options but yes, you need to use one.
Title: Re: DNS on fresh install not able to resolve websites
Post by: seiya_balthazar on September 01, 2022, 10:40:31 pm
Thank you for the response. Yes I am using IPv4 with Unbound enabled. If I understand you correctly I should go to Services > DHCPv4 > [LAN] and set the DNS servers manually there? I did try adding DNS servers to that and I'm still not able to get out. I'm missing something.
Title: Re: DNS on fresh install not able to resolve websites
Post by: Supermule on September 01, 2022, 10:46:31 pm
Leave the DNS on DHCP blank to use system DNS.

Under System -> General Setup, make sure the DNS is blank to use root servers for DNS.

Test again.

Title: Re: DNS on fresh install not able to resolve websites
Post by: seiya_balthazar on September 01, 2022, 10:53:40 pm
THAT WAS IT! For the next person who searches I went to System > Settings > General and removed the IP addresses listed. I *do* wonder what I was doing wrong by manually adding IP addresses to that page then. It might have been that I didn't have a gateway selected.

Thank you everyone this can be marked as solved.