Show
Ignore:
Timestamp:
05/08/08 10:37:24 (7 months ago)
Author:
free
Message:

Added support for dnsmasq

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cdd-utils/trunk/cdd-config

    r488 r490  
    915915} 
    916916 
     917# Configure Dnsmasq to act as integrated DNS/DHCP server, which 
     918# automatically updates the zone info when assigning addresses 
     919# 
     920dnsmasq () { 
     921    cfg=/etc/dnsmasq.conf 
     922    if ! exists $cfg; then warning $cfg not found; return; fi 
     923    sed -i -e 's|^#conf-dir=/etc/dnsmasq.d|conf-dir=/etc/dnsmasq.d|g' $cfg 
     924    mkdir -p /etc/dnsmasq.d 
     925    cat <<EOF >> /etc/dnsmasq.d/cdd-utils.conf 
     926dhcp-range=192.168.1.10,192.168.1.100,12h 
     927EOF 
     928} 
     929 
    917930# Monit 
    918931monit () {