summaryrefslogtreecommitdiffstats
path: root/src/connections
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections')
-rw-r--r--src/connections/ethernet3
-rw-r--r--src/connections/openvpn3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 33aae2f..a6a53bd 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -218,6 +218,9 @@ ethernet_up() {
for dns in "${DNS[@]}"; do
echo "nameserver $dns" >>/etc/resolv.conf
done
+ for dnsoption in "${DNS_OPTIONS[@]}"; do
+ echo "option $dnsoption" >>/etc/resolv.conf
+ done
fi
return 0
diff --git a/src/connections/openvpn b/src/connections/openvpn
index 27c8c65..6ecfeb7 100644
--- a/src/connections/openvpn
+++ b/src/connections/openvpn
@@ -28,6 +28,9 @@ openvpn_up() {
for dns in "${DNS[@]}"; do
echo "nameserver $dns" >>/etc/resolv.conf
done
+ for dnsoption in "${DNS_OPTIONS[@]}"; do
+ echo "option $dnsoption" >>/etc/resolv.conf
+ done
fi
}