update nameservers using resolconf -u
[dotfiles] / .bash_function
index f123df5..d43732a 100644 (file)
@@ -95,12 +95,13 @@ my_reboot_br0(){
 }
 
 my_up(){
-    ifup br0 &&
-    echo "nameserver 31.14.133.188" | sudo tee -a /etc/resolv.conf # (ns5.it) -- 99.30% uptime
-    echo "nameserver 87.98.242.252" | sudo tee -a /etc/resolv.conf # (ns11.fr) -- 99.58% uptime
-    echo "nameserver 87.98.175.85" | sudo tee -a /etc/resolv.conf # (ns10.fr) -- 99.61% uptime
-    echo "nameserver 193.183.98.154" | sudo tee -a /etc/resolv.conf #(ns1.it) -- 99.84% uptime
-    echo "nameserver 80.67.169.12" | sudo tee -a /etc/resolv.conf
+    sudo ifup br0 && sudo resolvconf -u
+    # ifup br0 &&
+    # echo "nameserver 31.14.133.188" | sudo tee -a /etc/resolv.conf # (ns5.it) -- 99.30% uptime
+    # echo "nameserver 87.98.242.252" | sudo tee -a /etc/resolv.conf # (ns11.fr) -- 99.58% uptime
+    # echo "nameserver 87.98.175.85" | sudo tee -a /etc/resolv.conf # (ns10.fr) -- 99.61% uptime
+    # echo "nameserver 193.183.98.154" | sudo tee -a /etc/resolv.conf #(ns1.it) -- 99.84% uptime
+    # echo "nameserver 80.67.169.12" | sudo tee -a /etc/resolv.conf
 }
 
 my_weather(){