Tagging module MyPLC - MyPLC-4.2-16
[myplc.git] / dns-config
index b018558..e03b4a9 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: dns-config,v 1.1 2006/05/26 19:57:30 mlhuang Exp $
+# $Id$
 #
 
 from plc_config import PLCConfiguration
@@ -77,6 +77,7 @@ def main():
     
     # 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()
@@ -92,6 +93,7 @@ def main():
 domain-needed
 bogus-priv
 addn-hosts=/etc/plc_hosts
+resolv-file=/etc/resolv.conf
 """.lstrip())
 
     # Reload dnsmasq