Ticket #686 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 months ago

Bring the Option to set Custom DNS in PPoE mode

Reported by: Josemi Owned by:
Priority: normal Milestone: Firmware 2.3.7.0
Component: fon-network Version: 2.3.6.0 (Gari)
Severity: minor
Cc: klimpong@…, schnunz@…, mihaly.reg@… Hardware: both

Description

I think that is a must-have to Bring the Option to set Custom DNS in PPoE mode

Attachments

Change History

Changed 3 years ago by matthijs

  • hardware set to both
  • status changed from new to investigate
  • version set to 2.3.6.0 (Gari)
  • component changed from fon-base-firmware to fon-network
  • milestone Firmware 2.3.7.0 deleted

It seems currently PPoE doesn't allow setting manual DNS server override, like DHCP does. This is probably a small interface-only change, though it might need changes in the ppp code as well.

Changed 3 years ago by Josemi <josemi@…>

Any news?

Changed 3 years ago by matthijs

  • severity set to minor
  • milestone set to Firmware 2.3

Another quick look shows that /lib/network/ppp.sh (called by /lib/network/pppd.sh I think) already passes the peerdns option to pppd. By setting that to 0, pppd should ignore any received DNS servers. Then only the static dns servers need to be configured, but perhaps there is some generic piece of network setup code that handles that already?

Changed 3 years ago by matthijs

#927 is a duplicate of this ticket.

Changed 3 years ago by matthijs

  • cc klimpong@… added

Changed 22 months ago by matthijs

  • cc schnunz@…, mihaly.reg@… added
  • milestone changed from Firmware 2.3 to Firmware 2.3.7.0

This issue was raised on the blog by a few people as well, I'll see if I can fix this before the 2.3.7.0 final.

Changed 21 months ago by matthijs

(In [1993]) ppp: Allow overriding the DNS server used.

This backports r19093 from OpenWRT trunk without any changes. Note that this just changes the networking scripts, there is no way to override the DNS from the WebGUI yet.

References: #686

Changed 21 months ago by matthijs

  • status changed from investigate to closed
  • resolution set to fixed

(In [1994]) luci: Allow setting a custom DNS server in pppoe mode.

Closes: #686

Changed 20 months ago by matthijs

(In [2017]) fonbase: Fix pppoe mode when DNS is set top automatic.

The new custom DNS setting for pppoe introduced in r1994 did not correctly check for the "automatic" setting (which is "0", not ""). This corrects that mistake and makes pppoe work with automatic DNS again.

References: #686

Changed 7 months ago by matthijs

(In [2213]) fonbase: Really fix pppoe mode when DNS is set to automatic.

In r2017, this same thing was supposed to be fixed, but the fix was completely wrong. This fixes the broken condition and also explicitly sets the peerdns value to 1 (which is the default) when using automatic dns to make the code a bit more clear.

Due to a syntax error in the broken code, automatic DNS was still working after r2017, but static DNS was not. When in r2129 this syntax error was fixed, static DNS started working, but automatic DNS was broken again.

References: #686 Closes: #1229

Add/Change #686 (Bring the Option to set Custom DNS in PPoE mode)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.