Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Local DHCPv4 custom DNS is not used
« previous
next »
Print
Pages: [
1
]
Author
Topic: Local DHCPv4 custom DNS is not used (Read 1626 times)
Roemer
Newbie
Posts: 15
Karma: 0
Local DHCPv4 custom DNS is not used
«
on:
October 14, 2021, 11:59:56 pm »
Hello
I have a fairly standard OPNSense box. I use quite some services which are available from the internet like "myservice.mydomain.com" which goes to an nginx-container which forwards to the right service. From external this works perfectly. Now to use the same while in the LAN, I use a custom DNS Server which translates "myservice.mydomain.com" into the LAN IP of the nginx-container.
For this, I added my LAN-DNS-IP into Services -> DHCPv4 -> [LAN] -> DNS servers
This actually worked now for almost a week somehow (but seemed strange as some custom entries from my DNS didn't work) but now it stopped working at all. When I now use "myservice.mydomain.com" from the LAN, I get "A potential DNS Rebind attack has been detected." Also if I ping "myservice.mydomain.com" from LAN, I get my WAN address. It seems as if my custom DNS is entirely skipped.
What could be the issue? What am I missing? I read about "Reflection for port forwards" and "Reflection for 1:1" which in the end would lead my connection to WAN and back so I don't want that, I want to directly go to the correct LAN address instead of doing a round trip to WAN.
Many thanks for your help.
Logged
Roemer
Newbie
Posts: 15
Karma: 0
Re: Local DHCPv4 custom DNS is not used
«
Reply #1 on:
October 15, 2021, 12:09:49 am »
I just found out that when I do an nslookup, I see my opnsense as Server and its ipv6 as address. Could my issue be that it uses ipv6 now for some reason (whereas it used v4 earlier on)?
Edit1: Ok, I disabled ipv6 on my PC and now everything works again! So what is the best I should do? Disable all ipv6 in opnsense? Or somehow disable DNS via ipv6? Or somehow give the ipv6 of my DNS server to DHCPv6?
«
Last Edit: October 15, 2021, 12:17:02 am by Roemer
»
Logged
Roemer
Newbie
Posts: 15
Karma: 0
Re: Local DHCPv4 custom DNS is not used
«
Reply #2 on:
October 27, 2021, 09:06:36 am »
I am still suffering from this issue. I disabled Unbound DNS for now which also seems to fix the issue but I am unsure if that is the right way to do it. ANy help would still be very appreciated.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Local DHCPv4 custom DNS is not used