One problem found in network.py
dns-nameserver must be dns-nameservers.
iff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index 04e20e745..8afcc9bd6 100644
--- a/lib/python/Components/Network.py
+++ b/lib/python/Components/Network.py
@@ -117,7 +117,7 @@ class Network:
fp.write(iface["predown"])
if iface["dns-nameserver"]:
for nameserver in iface["dns-nameserver"]:
- fp.write(" dns-nameserver %d.%d.%d.%d\n" % tuple(nameserver))
+ fp.write(" dns-nameservers %d.%d.%d.%d\n" % tuple(nameserver))
fp.write("\n")
fp.close()
self.configuredNetworkAdapters = self.configuredInterfaces
As test tested
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index 04e20e745..aecc08598 100644
--- a/lib/python/Components/Network.py
+++ b/lib/python/Components/Network.py
@@ -109,6 +109,7 @@ class Network:
fp.write(" netmask %d.%d.%d.%d\n" % tuple(iface['netmask']))
if 'gateway' in iface:
fp.write(" gateway %d.%d.%d.%d\n" % tuple(iface['gateway']))
+ fp.write(" dns-nameservers 8.8.8.8\n")
if "configStrings" in iface:
fp.write(iface["configStrings"])
if iface["preup"] and "configStrings" not in iface:
@@ -117,7 +118,7 @@ class Network:
fp.write(iface["predown"])
if iface["dns-nameserver"]:
for nameserver in iface["dns-nameserver"]:
- fp.write(" dns-nameserver %d.%d.%d.%d\n" % tuple(nameserver))
+ fp.write(" dns-nameservers %d.%d.%d.%d\n" % tuple(nameserver))
fp.write("\n")
fp.close()
self.configuredNetworkAdapters = self.configuredInterfaces
Now I see dns-nameserver in interfaces
# automatically generated by enigma2
# do NOT change manually!
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.72
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 8.8.8.8
But no /etc/resolv.conf. No file, no symlink.