PPP: Always fetch DNS servers from provider

We will later decide whether we want to use them or not

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-01-31 10:06:34 +00:00
parent d74d6844fd
commit c3ae88cab9

View File

@@ -376,16 +376,6 @@ case "${1}" in
AUTH=""
fi
### DNS Config
#
if [ "${DNS}" == "Automatic" ]; then
DNS="usepeerdns"
else
DNS=""
echo nameserver=$DNS1 > /etc/ppp/resolv.conf
echo nameserver=$DNS2 >> /etc/ppp/resolv.conf
fi
### Dial On Demand
#
if [ "${RECONNECTION}" != "persistent" ]; then
@@ -417,7 +407,7 @@ case "${1}" in
### Standard PPP options we always use
#
PPP_STD_OPTIONS="$PLUGOPTS $DNS defaultroute noipdefault noauth"
PPP_STD_OPTIONS="$PLUGOPTS usepeerdns defaultroute noipdefault noauth"
PPP_STD_OPTIONS+=" default-asyncmap hide-password nodetach"
PPP_STD_OPTIONS+=" noaccomp nodeflate nopcomp novj novjccomp"
PPP_STD_OPTIONS+=" nobsdcomp user ${USERNAME} lcp-echo-interval 20"