Project

General

Profile

Actions

Bug #15434

closed

DNS Forwarder ignores "Use remote DNS Servers, ignore local DNS" setting

Added by aleksei prokofiev 10 days ago. Updated 8 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DNS Forwarder
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
24.07
Release Notes:
Default
Affected Version:
Affected Architecture:

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

resolver.png (32.8 KB) resolver.png aleksei prokofiev, 04/24/2024 05:20 PM
forwarder.png (29.3 KB) forwarder.png aleksei prokofiev, 04/24/2024 05:20 PM
Actions #1

Updated by Jim Pingle 10 days 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.

Actions #2

Updated by Danilo Zrenjanin 10 days 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

Actions #3

Updated by Jordan G 10 days ago

same behavior on my edge when switching to forwarder

nameserver 127.0.0.1
nameserver ::1
nameserver 192.168.3.1
nameserver 192.168.3.2

Actions #4

Updated by Jim Pingle 10 days 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.

Actions #5

Updated by Jim Pingle 10 days ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100
Actions #6

Updated by dylan mendez 10 days 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.

Actions #7

Updated by Jim Pingle 8 days 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.

Actions

Also available in: Atom PDF