Bug 12241

Summary: DNS: Write ISP DNS servers to /var/ipfire/dns/servers
Product: IPFire Reporter: Michael Tremer <michael.tremer>
Component: ---Assignee: Stefan Schantl <stefan.schantl>
Status: CLOSED FIXED QA Contact:
Severity: - Unknown -    
Priority: - Unknown - CC: peter.mueller, stefan.schantl
Version: 2   
Hardware: unspecified   
OS: Unspecified   
Bug Depends on: 12234, 12235, 12236, 12237    
Bug Blocks: 12233    

Description Michael Tremer 2019-11-12 13:28:41 UTC
When users are using RED in DHCP/PPP mode, the received DNS servers need to be written to /var/ipfire/dns/servers and being marked as coming from there.

When the DHCP lease expires or the PPP session ends, they will need to be removed again and unbound needs to be reloaded.
Comment 1 Stefan Schantl 2020-01-08 08:41:59 UTC
The ISP assigned DNS Servers now will be "/var/run/dns1" and "/var/run/dns2".

The addresses will be picked from there and used by the CGI and script files.

https://git.ipfire.org/?p=people/stevee/ipfire-2.x.git;a=commit;h=1434fa0df5ab01c2e3a430f05db159a3a82bc3ba