# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: dns-config 129 2007-03-20 12:04:03Z thierry $
+# $Id$
#
from plc_config import PLCConfiguration
# 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/resolv.conf
""".lstrip())
# Reload dnsmasq