- enable local DNS server by default, set primary DNS server for MyPLC
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 23 May 2006 18:14:47 +0000 (18:14 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 23 May 2006 18:14:47 +0000 (18:14 +0000)
  to 127.0.0.1
- add optional _IP parameters for each server so that the local DNS
  server can provide resolution for MyPLC itself
- require dnsmasq

plc_config.xml

index a9e1a7e..aea09e0 100644 (file)
@@ -6,7 +6,7 @@ Default PLC configuration file
 Mark Huang <mlhuang@cs.princeton.edu>
 Copyright (C) 2006 The Trustees of Princeton University
 
-$Id: plc_config.xml,v 1.11 2006/04/24 18:04:25 mlhuang Exp $
+$Id: plc_config.xml,v 1.12 2006/04/28 20:15:00 mlhuang Exp $
 -->
 
 <!DOCTYPE configuration PUBLIC "-//PlanetLab Central//DTD PLC configuration//EN" "plc_config.dtd">
@@ -111,18 +111,41 @@ $Id: plc_config.xml,v 1.11 2006/04/24 18:04:25 mlhuang Exp $
       <variablelist>
        <variable id="dns1" type="ip">
          <name>Primary DNS Server</name>
-         <value>128.112.136.10</value>
+         <value>127.0.0.1</value>
          <description>Primary DNS server address.</description>
        </variable>
 
        <variable id="dns2" type="ip">
          <name>Secondary DNS Server</name>
-         <value>128.112.136.12</value>
+         <value></value>
          <description>Secondary DNS server address.</description>
        </variable>
       </variablelist>
     </category>
 
+    <category id="plc_dns">
+      <name>DNS</name>
+      <description>MyPLC can provide forward DNS resolution for itself
+      and for its nodes. To enable resolution for MyPLC itself, set
+      the Primary DNS Server address to 127.0.0.1 and provide external
+      IP addresses for the database, API, web, and boot servers
+      below. To enable resolution for nodes, use the external IP
+      address of this machine as the primary DNS server address for
+      each node.</description>
+
+      <variablelist>
+        <variable id="enabled" type="boolean">
+          <name>Enable DNS</name>
+          <value>true</value>
+          <description>Enable the internal DNS server. The server does
+          not provide reverse resolution and is not a production
+          quality or scalable DNS solution. Use the internal DNS
+          server only for small deployments or for
+          testing.</description>
+        </variable>
+      </variablelist>
+    </category>
+
     <category id="plc_mail">
       <name>Mail</name>
       <description>Many maintenance scripts, as well as the API and
@@ -187,11 +210,17 @@ $Id: plc_config.xml,v 1.11 2006/04/24 18:04:25 mlhuang Exp $
        <variable id="host" type="hostname">
          <name>Hostname</name>
          <value>localhost.localdomain</value>
-         <description>The fully qualified hostname or IP address of
-         the database server. This hostname must be resolvable and
-         reachable by the rest of your installation.</description>
+         <description>The fully qualified hostname of the database
+         server.</description>
        </variable>
 
+        <variable id="ip" type="ip">
+          <name>IP Address</name>
+          <value>127.0.0.1</value>
+          <description>The IP address of the database server, if not
+          resolvable by the configured DNS servers.</description>
+        </variable>
+
        <variable id="port" type="int">
          <name>Port</name>
          <value>5432</value>
@@ -244,12 +273,17 @@ $Id: plc_config.xml,v 1.11 2006/04/24 18:04:25 mlhuang Exp $
        <variable id="host" type="hostname">
          <name>Hostname</name>
          <value>localhost.localdomain</value>
-         <description>The fully qualified hostname or IP address of
-         the API server. This hostname must be resolvable and
-         reachable by the rest of your installation, as well as your
-         nodes.</description>
+         <description>The fully qualified hostname of the API
+         server.</description>
        </variable>
 
+        <variable id="ip" type="ip">
+          <name>IP Address</name>
+          <value>127.0.0.1</value>
+          <description>The IP address of the API server, if not
+          resolvable by the configured DNS servers.</description>
+        </variable>
+
        <variable id="port" type="int">
          <name>Port</name>
          <value>80</value>
@@ -347,12 +381,17 @@ $Id: plc_config.xml,v 1.11 2006/04/24 18:04:25 mlhuang Exp $
        <variable id="host" type="hostname">
          <name>Hostname</name>
          <value>localhost.localdomain</value>
-         <description>The fully qualified hostname or IP address of
-         the web server. This hostname must be resolvable and
-         reachable by the rest of your installation, as well as your
-         nodes.</description>
+         <description>The fully qualified hostname of the web
+         server.</description>
        </variable>
 
+        <variable id="ip" type="ip">
+          <name>IP Address</name>
+          <value>127.0.0.1</value>
+          <description>The IP address of the web server, if not
+          resolvable by the configured DNS servers.</description>
+        </variable>
+
        <variable id="port" type="int">
          <name>Port</name>
          <value>80</value>
@@ -410,12 +449,17 @@ $Id: plc_config.xml,v 1.11 2006/04/24 18:04:25 mlhuang Exp $
        <variable id="host" type="hostname">
          <name>Hostname</name>
          <value>localhost.localdomain</value>
-         <description>The fully qualified hostname or IP address of
-         the boot server. This hostname must be resolvable and
-         reachable by the rest of your installation, as well as your
-         nodes.</description>
+         <description>The fully qualified hostname of the boot
+         server.</description>
        </variable>
 
+        <variable id="ip" type="ip">
+          <name>IP Address</name>
+          <value>127.0.0.1</value>
+          <description>The IP address of the boot server, if not
+          resolvable by the configured DNS servers.</description>
+        </variable>
+
        <variable id="port" type="int">
          <name>Port</name>
          <value>80</value>
@@ -476,6 +520,9 @@ $Id: plc_config.xml,v 1.11 2006/04/24 18:04:25 mlhuang Exp $
        <packagereq type="mandatory">sendmail</packagereq>
        <packagereq type="mandatory">sendmail-cf</packagereq>
 
+       <!-- Caching DNS server -->
+       <packagereq type="mandatory">dnsmasq</packagereq>
+
        <!-- (Optional) Synchronizing with PLC -->
        <packagereq type="mandatory">rsync</packagereq>