servers. These upstream servers either come from the original
/etc/resolv.conf or given data provided at plc-config-tty time
specifying the appropriate dns servers.
# Write /etc/plc_hosts
plc_hosts = open("/etc/plc_hosts", "w")
+ plc_hosts.write("# DO NOT EDIT; File is writen and removed by automatic scripts\n")
for ip, hostnames in hosts.iteritems():
plc_hosts.write(ip + "\t" + " ".join(hostnames) + "\n")
plc_hosts.close()
domain-needed
bogus-priv
addn-hosts=/etc/plc_hosts
+resolv-file=/etc/plc_resolv.conf
""".lstrip())
# Reload dnsmasq