summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
Diffstat (limited to 'textw')
-rw-r--r--textw/netconfig_text.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/textw/netconfig_text.py b/textw/netconfig_text.py
index 8efeb5d18..323261bcf 100644
--- a/textw/netconfig_text.py
+++ b/textw/netconfig_text.py
@@ -237,9 +237,7 @@ class NetworkConfiguratorText:
try:
if ns:
network.sanityCheckIPString(ns)
- f = open("/etc/resolv.conf", "w")
- f.write("nameserver %s\n" % ns)
- f.close()
+ netdev.set(("DNS1", ns))
except network.IPError, msg:
self._handleIPError(_("Nameserver"), msg)
continue