English Forums > Tutorials and FAQs
HOWTO - Redirect all DNS Requests to Opnsense
dave:
--- Quote ---Normally ::1 is the IPv6-localhost-Address. I must configure the IPv6-Address of the Interface (created an Alias) instead of ::1 in the NAT Rule and then it works. The clients resolves DNS-Records even if using his own IPv6-DNS-Servers.
--- End quote ---
Hey p1n0ck10, could you go in to a little more detail regarding this?
NAT redirects now use floating rules when the rule's running across multiply interfaces.
You saying I'm going to have to create individual rules & aliases for each interfaces ipv6 address?
Currently I've got a floating ipv6 NAT rule redirecting to ::1, and it's clearly not working.
ChrisChros:
--- Quote from: Cypher100 on July 26, 2018, 03:16:37 am ---This tutorial will show you how to force all DNS querys to go through Opnsense router regardless of DNS servers specified on the local system. This will redirect anything going through 53 to the router itself.
--- End quote ---
Hi Cypher,
will this procedure also work for an DNS-Server, e.g. Pi-Hole, within my environment when I fill in the IP of Pi-Hole instead of 127.0.0.1 to the NAT rules?
Regards Chris
mayo:
--- Quote from: ChrisChros on December 28, 2020, 09:23:27 am ---
--- Quote from: Cypher100 on July 26, 2018, 03:16:37 am ---This tutorial will show you how to force all DNS querys to go through Opnsense router regardless of DNS servers specified on the local system. This will redirect anything going through 53 to the router itself.
--- End quote ---
Hi Cypher,
will this procedure also work for an DNS-Server, e.g. Pi-Hole, within my environment when I fill in the IP of Pi-Hole instead of 127.0.0.1 to the NAT rules?
Regards Chris
--- End quote ---
Have the same question.
vpn:
Hi, so not sure I am doing this right but trying to re-direct all DNS queries to OPNsense as even thought I have my SmartTV set to this (GW of .1), it still ends up going to google (8.8.8.8). All other devices on the network are fine and use their default GW for DNS.
Here is how I have the NAT port forwarding setup.
ChrisChros:
--- Quote from: mayo on December 29, 2020, 08:28:46 am ---
--- Quote from: ChrisChros on December 28, 2020, 09:23:27 am ---
--- Quote from: Cypher100 on July 26, 2018, 03:16:37 am ---This tutorial will show you how to force all DNS querys to go through Opnsense router regardless of DNS servers specified on the local system. This will redirect anything going through 53 to the router itself.
--- End quote ---
Hi Cypher,
will this procedure also work for an DNS-Server, e.g. Pi-Hole, within my environment when I fill in the IP of Pi-Hole instead of 127.0.0.1 to the NAT rules?
Regards Chris
--- End quote ---
Have the same question.
--- End quote ---
I have now set my Pi-Hole IP instead of 127.0.0.1 to the NAT rules and it looks like its working
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version