Bug #15434
closedDNS Forwarder ignores "Use remote DNS Servers, ignore local DNS" setting
100%
Description
In General Setup if use option "Use remote DNS Servers, ignore local DNS" the DNS Forwarder still try to use local DNS. If this is expected behavior, the docs should be corrected.
The docs says "This option forces the firewall to use the DNS servers configured on this page or from dynamic WANs and it will not utilize the local DNS Resolver or DNS Forwarder."
Tested on 23.09.1 and 24.03
Files
Updated by Jim Pingle 7 months ago
- Status changed from New to Not a Bug
I can't reproduce that here.
Before:
: cat /etc/resolv.conf nameserver 127.0.0.1 nameserver ::1 nameserver 198.51.100.1 nameserver 2001:db8::1 nameserver 2001:4860:4860::8844 nameserver 2001:4860:4860::8888 nameserver 8.8.8.8 nameserver 8.8.4.4
After:
: cat /etc/resolv.conf nameserver 198.51.100.1 nameserver 2001:db8::1 nameserver 2001:4860:4860::8844 nameserver 2001:4860:4860::8888 nameserver 8.8.8.8 nameserver 8.8.4.4
It appears to be working as expected.
Updated by Danilo Zrenjanin 7 months ago
I can replicate this issue. It's present only when you disable unbound and enable the forwarder(dnsmasq).
Use remote DNS Servers, ignore local DNS option is selected under System/General Setup
cat /etc/resolv.conf nameserver 127.0.0.1 nameserver ::1 nameserver 172.21.10.4
Updated by Jim Pingle 7 months ago
- Project changed from pfSense Plus to pfSense
- Subject changed from For some reason with enabled "Use remote DNS Servers, ignore local DNS", the DNS Forwarder still try to use local DNS. to DNS Forwarder ignores "Use remote DNS Servers, ignore local DNS" setting
- Category changed from DNS Forwarder to DNS Forwarder
- Status changed from Not a Bug to In Progress
- Assignee set to Jim Pingle
- Target version set to 2.8.0
- Affected Plus Version deleted (
24.03) - Plus Target Version set to 24.07
OK, I can also reproduce this with the DNS Forwarder. I also have a fix coming. Looks like some parenthesis around the tests involved were slightly wrong.
Updated by Jim Pingle 7 months ago
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
Applied in changeset 247909ff5387200fb31c76f13e7702a8fbdc06f4.
Updated by dylan mendez 7 months ago
This patch seems to work, however, I had to manually re-save the config on the General Setup page for the changes to resolv.conf to push, even though it was selected to "Use Remote DNS Servers, ignore local DNS" already. Tested on 2.7.2 and 24.03-release.
Updated by Jim Pingle 7 months ago
- Status changed from Feedback to Resolved
dylan mendez wrote in #note-6:
This patch seems to work, however, I had to manually re-save the config on the General Setup page for the changes to resolv.conf to push, even though it was selected to "Use Remote DNS Servers, ignore local DNS" already. Tested on 2.7.2 and 24.03-release.
That's expected, either re-save there or reboot since applying the patch wouldn't automatically regenerate the resolv.conf file, something else would have to trigger that.
Updated by Jim Pingle 6 months ago
- Plus Target Version changed from 24.07 to 24.08
Updated by Jim Pingle about 2 months ago
- Plus Target Version changed from 24.08 to 24.11