5 # Start local DNS server to provide minimal DNS forward resolution for
6 # ourselves and our nodes.
8 # Mark Huang <mlhuang@cs.princeton.edu>
9 # Copyright (C) 2006 The Trustees of Princeton University
11 # $Id: mail,v 1.2 2006/04/25 21:18:19 mlhuang Exp $
14 # Source function library and configuration
15 . /etc/plc.d/functions
16 . /etc/planetlab/plc_config
20 if [ "$PLC_DNS_ENABLED" != "1" ] ; then
24 MESSAGE=$"Starting DNS server"
27 # From the default dnsmasq.conf configuration file:
29 # The [domain-needed and bogus-priv] options make you a better
30 # netizen, since they tell dnsmasq to filter out queries which
31 # the public DNS cannot answer, and which load the servers
32 # (especially the root servers) uneccessarily.
34 # The api-config bootstrap script writes node hostnames to
37 cat >/etc/dnsmasq.conf <<EOF
40 addn-hosts=/etc/plc_hosts
50 MESSAGE=$"Stopping DNS server"