Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
Unbound DNS not resolving for external connections
« previous
next »
Print
Pages: [
1
]
Author
Topic: Unbound DNS not resolving for external connections (Read 6067 times)
cclloyd
Newbie
Posts: 39
Karma: 0
Unbound DNS not resolving for external connections
«
on:
September 20, 2018, 06:25:53 am »
I'm using unbound DNS as my DNS for my OPNSense installation. The interface for it is set to all, but for some reason it won't resolve for external connections.
Like I have an override:
Name: bt
Domain: example.com
Host: 10.0.1.11
Type: A
And when I try to access the host on my network it works just fine. But when I try it from anything outside my network, it fails to connect.
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: Unbound DNS not resolving for external connections
«
Reply #1 on:
September 20, 2018, 10:37:49 am »
What are you trying to do exactly?
Are you trying to connect to a device on your LAN from the WAN?
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
cclloyd
Newbie
Posts: 39
Karma: 0
Re: Unbound DNS not resolving for external connections
«
Reply #2 on:
September 20, 2018, 12:24:33 pm »
Yes.
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: Unbound DNS not resolving for external connections
«
Reply #3 on:
September 20, 2018, 12:36:38 pm »
You cannot do it that way...
When your device (mobile phone etc ) is connected to the WAN i.e. via mobile or external wifi, coffee shop etc it uses their DNS servers. You have to set up a DNS entry at your domain host. If you have a static WAN IP address you should be able to set up an entry pointing at your WAN IP, if you have a dynamic WAN IP address you will need to use a dynamic DNS service such as DynDNS.
You will also then need to port forward whatever ports you need through the firewall. If you are trying to use OpenVPN to connect to your LAN, then you just enter your WAN IP or FQDN in the client.
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
cclloyd
Newbie
Posts: 39
Karma: 0
Re: Unbound DNS not resolving for external connections
«
Reply #4 on:
September 21, 2018, 12:23:12 am »
I do have a static IP. My domain is through google domains.
Logged
ab5g
Newbie
Posts: 20
Karma: 1
Re: Unbound DNS not resolving for external connections
«
Reply #5 on:
September 21, 2018, 03:29:29 am »
Ok - are you trying to connect to your DNS server (which is running on Opnsense) over the WAN and use it to resolve the IP's ?
If yes then do you plan to
1. Access the DNS server over a VPN (perhaps SSL)
2. Access the DNS server over internet - (Isn't the recommended approach)
In both cases you need to complete the 2 steps
1. Tell the DNS server to listen for requests on different interfaces - Services: Unbound DNS: General:Network Interfaces.
2. Allow DNS to respond to Services: Unbound DNS: Access Lists
Logged
DIY Tech >>
www.zero-ping.blog
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
Unbound DNS not resolving for external connections