#!/bin/bash # # priority: 850 # # Start local DNS server to provide minimal DNS forward resolution for # ourselves and our nodes. # # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # # $Id: mail,v 1.2 2006/04/25 21:18:19 mlhuang Exp $ # # Source function library and configuration . /etc/plc.d/functions . /etc/planetlab/plc_config case "$1" in start) if [ "$PLC_DNS_ENABLED" != "1" ] ; then exit 0 fi MESSAGE=$"Starting DNS server" dialog "$MESSAGE" # From the default dnsmasq.conf configuration file: # # The [domain-needed and bogus-priv] options make you a better # netizen, since they tell dnsmasq to filter out queries which # the public DNS cannot answer, and which load the servers # (especially the root servers) uneccessarily. # # The api-config bootstrap script writes node hostnames to # /etc/plc_hosts. # cat >/etc/dnsmasq.conf <