1
General Discussion / Help with weird DNS behavior
« on: November 08, 2024, 03:51:37 pm »
Ever since I moved and changed internet provider I had to do this hacky thing to get DNS to work on my network.
This is the configuration I had before that didn't work with the new provider:
In System > Settings > General:
DNS Server:
10.10.0.1 (my opnsense instance)
1.1.1.1
8.8.8.8
Allow DNS server list to be overridden by DHCP/PPP on WAN (unchecked)
Do not use the local DNS service as a nameserver for this system (unchecked)
That was it, I had DNS resolution through Unbound DNS with no extra configuration, but this config did not allow for DNS resolution with the new provider.
I could ping IPs, but I could not resolve outside DNS.
Here's what I had to do to get it to work:
In System > Settings > General:
DNS Server:
192.168.101.1 (ISP gateway I got from Interfaces overview, see image below)
10.10.0.1 (my opnsense instance)
1.1.1.1
8.8.8.8

I also had to add the ISP Gateway in Services > ISC DHCPv4 on every interface in order to get DNS working, here's an example:

I dealt with this in order to get the connection working, but I know it's wrong and I hate this solution.
Can someone help me diagnose this and help me do it the right way?
This is the configuration I had before that didn't work with the new provider:
In System > Settings > General:
DNS Server:
10.10.0.1 (my opnsense instance)
1.1.1.1
8.8.8.8
Allow DNS server list to be overridden by DHCP/PPP on WAN (unchecked)
Do not use the local DNS service as a nameserver for this system (unchecked)
That was it, I had DNS resolution through Unbound DNS with no extra configuration, but this config did not allow for DNS resolution with the new provider.
I could ping IPs, but I could not resolve outside DNS.
Here's what I had to do to get it to work:
In System > Settings > General:
DNS Server:
192.168.101.1 (ISP gateway I got from Interfaces overview, see image below)
10.10.0.1 (my opnsense instance)
1.1.1.1
8.8.8.8

I also had to add the ISP Gateway in Services > ISC DHCPv4 on every interface in order to get DNS working, here's an example:

I dealt with this in order to get the connection working, but I know it's wrong and I hate this solution.
Can someone help me diagnose this and help me do it the right way?

