Project

General

Profile

Bug #838

DNS servers are not cleared from resolv.conf when link comes down

Added by Marcus Brown over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
Start date:
08/22/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.0
Affected Architecture:

Description

When bringing down PPP,PPPoE,PPTP,L2TP we don't clear the DNS server IPs associated with those links from the /var/etc/resolv.conf file.
Maybe add system_hosts_generate() to the interface_bring_down function? There should probably be more to it than that since they should probably be cleared is the link comes down due to other factors like ISP problems of cable problems between ISP and pfSense.

This causes problems for our cable modem friends in Israel in this thread: http://forum.pfsense.org/index.php/topic,25465.0.html

I'm not sure what to do so this can be a discussion about it, or if others feel confident to just make the change then that works too.

Associated revisions

Revision f0e58f4c (diff)
Added by Ermal Luçi over 8 years ago

Add a script to rewrite the resolv.conf file for dns configuration. This is one part of Ticket #838 to allow sending an event for rewriting resolv.conf on down event from ppp type interfaces.

Revision ef13b720 (diff)
Added by Ermal Luçi over 8 years ago

Give +x to the script. Part of Ticket #838.

Revision 228aec46 (diff)
Added by Ermal Luçi over 8 years ago

On ppp type interfaces down event signal for resolv.conf to be generated to have the latest dns servers. Ticket #838.

History

#1 Updated by Chris Buechler over 8 years ago

  • Category set to Interfaces
  • Target version set to 2.0
  • Affected Version set to 2.0

#2 Updated by Ermal Luçi over 8 years ago

  • Status changed from New to Feedback

#3 Updated by Marcus Brown over 8 years ago

The file gets generated (/tmp/resolv_conf_generate) but /usr/local/sbin/check_reload_status doesn't know how to handle it, and nameservers don't get cleared.

#4 Updated by Jim Pingle over 8 years ago

There is not yet a new snapshot that includes the rebuilt check_reload_status that can handle this. It's building now. It will show up in several hours.

#5 Updated by Marcus Brown over 8 years ago

Mmm. Yes, I see I missed that detail. :)

It doesn't look like it's going to work.

Patch: (rc.rc.resolv_conf_generate)

{ "/tmp/resolv_conf_generate", "/etc/rc.rc.resolv_conf_generate",
101 "Rewriting resolv.conf", CYCLE}

#6 Updated by Ermal Luçi over 8 years ago

Corrected. Thx.

#7 Updated by Marcus Brown over 8 years ago

Works now.

Is there any efficient way to make adding and removing nameservers faster?

#8 Updated by Ermal Luçi over 8 years ago

What do you mean efficent?

#9 Updated by Marcus Brown over 8 years ago

I mean, I presume that this nameserver handling is done this way to keep the GUI responsive, so is there a way to get the nameservers updated(added and removed to /etc/hosts) faster while still keeping the GUI fast too?

What is the reason to handle nameserver updates through check_reload_status?

#10 Updated by Marcus Brown over 8 years ago

This works now. This issue can be closed.

#11 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF