Changeset 774

Show
Ignore:
Timestamp:
09/04/08 13:03:50 (3 months ago)
Author:
free
Message:

Write dnsmasq.d/ares.conf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ares/trunk/ares.py

    r773 r774  
    256256        aug.set(cfg + '/conf-dir', '/etc/dnsmasq.d') 
    257257 
     258        os.mkdir(self._ares.root + 'etc/dnsmasq.d') 
     259        net='.'.join(self._ares.net.split('.')[0:3]) 
     260        cfg = open(self._ares.root + 'etc/dnsmasq.d/ares.conf', 'w+') 
     261        cfg.write("dhcp-range=%s.10,%s.100,12h\n" % (net,net)) 
     262        cfg.close() 
     263 
    258264# 
    259265# Hosts