Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Unbound DNS - Unable to resolve Host Overrides
« previous
next »
Print
Pages: [
1
]
Author
Topic: Unbound DNS - Unable to resolve Host Overrides (Read 2530 times)
yodaphone
Newbie
Posts: 22
Karma: 0
Unbound DNS - Unable to resolve Host Overrides
«
on:
March 22, 2020, 03:27:22 am »
I'm new to opnsense.
I've configured the host overrides to map internal IPs to hosts. But i cant ping them OR connect to them. These hosts are also defined in my cloudflare DNS server. instead of resolving the internal IP it returns the external IP of the firewall.
Any ideas as to why this happens?
for e.g. my bitwarden.domain.com is mapped to an internal IP 192.168.15.4 in UNBound Host Overrides
when i ping bitwarden.domain.com it returns the external IP
«
Last Edit: March 22, 2020, 03:30:33 am by yodaphone
»
Logged
astoklas
Newbie
Posts: 5
Karma: 0
Re: Unbound DNS - Unable to resolve Host Overrides
«
Reply #1 on:
March 24, 2020, 04:37:14 pm »
I have exactly the same issue and tried multiple options to resolve this, none of them worked
However, I had the following observation:
Hosts which are only defined in unbound (so no A/CNAME in the public DNS) do work
; <<>> DiG 9.10.6 <<>> localonly.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: xxxx
;; flags: qr
aa
rd ra; QUERY: 1,
ANSWER: 1
, AUTHORITY: 0, ADDITIONAL: 0
Hosts which are defined in unbound and in the public DNS (w/ A or CNAME in the public DNS) do NOT work.
The difference I see is in the number of ANSWER, which seems like unbound is passing the public answer to the client instead of an overwrite
; <<>> DiG 9.10.6 <<>> localnpublic.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: xxxxx
;; flags: qr rd ra; QUERY: 1,
ANSWER: 2
, AUTHORITY: 0, ADDITIONAL: 0
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: Unbound DNS - Unable to resolve Host Overrides
«
Reply #2 on:
March 25, 2020, 11:12:12 am »
It's working fine here. In fact it wasn't as I'd recently changed a couple of things and forgot to put back the overrides, once restored it all works fine.
Please make sure you flush the dns cache on the PC you are using to test with. Note I'm also using Cloudflare with ssl.
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Unbound DNS - Unable to resolve Host Overrides