[Dnsmasq-discuss] File System Access by Dnsmasq

mattmatteh at gmail.com mattmatteh at gmail.com
Mon Aug 9 19:16:10 BST 2010

>> into standby if they are not needed and I want to move all files
>> accessed by dnsmasq to a USB flash drive, so that dnsmasq won?t wake
>> up the disks.
>> So far I have done that for the log file and lease file by adding the
>> following two lines to the configuration file:
>> dhcp-leasefile=/volumeUSB1/dnsmasq/dnsmasq.lease 
>> log-facility=/volumeUSB1/dnsmasq/dnsmasq.log

have you considered tmpfs or ramfs if you wont miss the log or lease in 
the event of shutdown ?

> The configuration file is only read at startup. /etc/resolv.conf is
> checked regularly, but that's correlated with DNS queries, not DHCP
> transactions. You can use --no-poll to stop that.
> Those two files are the only ones written durring a DHCP transaction. Of
> course if you have a script configured that runs when a DHCP lease is
> created, that could do anything.

i wonder if you could symlink /etc/resolv.conf to a tmpfs or ramfs mounted 
filesystem, again if that works for you.


More information about the Dnsmasq-discuss mailing list