Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.7.r1] "Do not use the DNS Forwarder/Resolver as a DNS server for the firewall" seems broken #2562

Closed
sjorge opened this issue Jul 19, 2018 · 8 comments
Assignees
Labels
bug Production bug
Milestone

Comments

@sjorge
Copy link
Contributor

sjorge commented Jul 19, 2018

After upgrading form develop to the latest RC version to give that some more testing it seems that Do not use the DNS Forwarder/Resolver as a DNS server for the firewall under settings->general is broken.

With or without this checked the system never resolves hostnames know to dnsmasq (my dns resolver). The local resolver does also no longer appear in /etc/resolv.conf regardless of the setting.

Reverting to the latest stable and the system will resolve configured hostnames again when this setting is unchecked.

@fichtner fichtner self-assigned this Jul 19, 2018
@fichtner fichtner added the bug Production bug label Jul 19, 2018
@fichtner fichtner added this to the 18.7 milestone Jul 19, 2018
@fichtner
Copy link
Member

No change intended here in any way, but I'll take a look.

@fichtner
Copy link
Member

Cannot reproduce this at all.

% cat /etc/resolv.conf
domain homeoffice.local
nameserver 127.0.0.1
search local
nameserver 192.168.2.1

Insight hostnames resolve on LAN. If I enable the setting 127.0.0.1 disappears and Insight LAN host resolve fails.

@sjorge
Copy link
Contributor Author

sjorge commented Jul 19, 2018

How many other resolvers do you have? I have 4, 2 IPv4 and 2 IPv6.

@fichtner
Copy link
Member

I don't understand. It only injects or omits 127.0.0.1, it doesn't matter if Dnsmasq or Unbound is on port 53 or how many other servers are specified?

@sjorge
Copy link
Contributor Author

sjorge commented Jul 19, 2018

Configuration A (Not what I want, but 'works')
no_local_resolver

sjorge@hydrogen:~ % cat /etc/resolv.conf
domain acheron.be
nameserver 208.67.222.220
nameserver 2620:0:ccc::2
nameserver 208.67.222.222
nameserver 2620:0:ccd::2

Configuration B (What I want, but 'broken')

local_resolver

sjorge@hydrogen:~ % cat /etc/resolv.conf
domain acheron.be
nameserver 208.67.222.220
nameserver 2620:0:ccc::2
nameserver 208.67.222.222
nameserver 2620:0:ccd::2

@fichtner
Copy link
Member

Wrong alley, https://forum.opnsense.org/index.php?topic=9208.0 gives the correct hint. You use an interface selection for dnsmasq service? It's missing localhost now.

@fichtner
Copy link
Member

Actually, spot on with unnecessary private code being executed in another file, sorry for missing this.

# opnsense-patch 188b098

Cheers,
Franco

@sjorge
Copy link
Contributor Author

sjorge commented Jul 19, 2018

Yep that fixes it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

2 participants