FS#10653 - update dnsmasq to support /etc/conf.d
Attached to Project:
Arch Linux
Opened by Rhys Rhaven (rhys_rhaven) - Friday, 13 June 2008, 18:31 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 10:48 GMT
Opened by Rhys Rhaven (rhys_rhaven) - Friday, 13 June 2008, 18:31 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 10:48 GMT
|
Details
Could someone please update the dnsmasq package so that
/etc/rc.d/dnsmasq init script sources /etc/conf.d/dnsmasq,
such as gentoo does.
This can be added easily by "[ -f /etc/conf.d/dnsmasq ] && ./etc/conf.d/dnsmasq" to the top of the init script and then $DNSMASQ_OPTS to the line which runs the executable. Thanks. (from the gentoo wiki discussing it. openntpd, lighthttpd, etc, all do this so configuration is easier to look at.) ------------------------------------ File: /etc/dnsmasq.conf # The DHCP server needs somewhere on disk to keep its lease database. # This defaults to a sane location, but if you want to change it, use # the line below. dhcp-leasefile=/var/lib/misc/dnsmasq.leases 2. Alter /etc/conf.d/dnsmasq File: /etc/conf.d/dnsmasq DNSMASQ_OPTS="-l /var/lib/misc/dnsmasq.leases" The '-l' option tells dnsmasq to look to the leases file for hostnames. So now you don't have to worry about maintaining a static hosts file. |
This task depends upon
Comment by Glenn Matthys (RedShift) -
Saturday, 14 June 2008, 14:45 GMT
DNS masq has it's own configuration file in /etc/dnsmasq.conf