-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Got it. Do you have --no-hosts set? That would explain why it was
working for me and not for you.

I just pushed the fix to git.

Cheers,

Simon.


On 10/02/15 15:51, Yongkang You wrote:
> On Mon, Feb 9, 2015 at 11:49 PM, Simon Kelley
> <si...@thekelleys.org.uk> wrote:
> 
>> You should see something like
>> 
>> dnsmasq: inotify, new or changed file /tmp/hosts/testone dnsmasq:
>> read /tmp/hosts/testone - 1 addresses
>> 
>> Just to check the argument to hostsdir is a directory, and not a
>> file?
>> 
>> Any errors logged at startup?
>> 
> 
> Simon,
> 
> I used the config like this:
> 
> ---------dnsmasq.conf---------- ... 
> dhcp-hostsdir=/etc/hosts.dhcps/ dhcp-optsdir=/etc/hosts.options/ 
> hostsdir=/etc/hosts.dnss/ ... ----------end--------- -bash-4.1# ls
> /etc/hosts.dnss/ fa:cd:42:cf:50:00  fa:ed:12:0d:ad:00
> 
> -bash-4.1# cat /etc/hosts.dnss/* 10.11.30.33 10-11-30-33.test1.org 
> 10.11.109.127 10-11-109-127.test1.org
> 
> 
>> From the dnsmasq.log:
> -bash-4.1# tail -f /var/log/dnsmasq.log Feb 10 15:49:56
> dnsmasq[24347]: started, version 2.73test5-12-g2941d3a cachesize
> 150 Feb 10 15:49:56 dnsmasq[24347]: compile time options: IPv6
> GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP
> no-conntrack ipset auth no-DNSSEC loop-detect inotify Feb 10
> 15:49:56 dnsmasq-dhcp[24347]: DHCP, static leases only on
> 10.11.0.1, lease time 1h Feb 10 15:49:56 dnsmasq[24347]: reading
> /etc/resolv.conf Feb 10 15:49:56 dnsmasq[24347]: using nameserver
> 10.0.101.1#53 Feb 10 15:49:56 dnsmasq[24347]: cleared cache Feb 10
> 15:49:56 dnsmasq-dhcp[24347]: read 
> /etc/hosts.options//fa:ed:12:0d:ad:00 Feb 10 15:49:56
> dnsmasq-dhcp[24347]: read /etc/hosts.options//fa:cd:42:cf:50:00 Feb
> 10 15:49:56 dnsmasq-dhcp[24347]: read 
> /etc/hosts.dhcps//fa:ed:12:0d:ad:00 Feb 10 15:49:56
> dnsmasq-dhcp[24347]: read /etc/hosts.dhcps//fa:cd:42:cf:50:00
> 
> Feb 10 15:50:27 dnsmasq[24347]: inotify, new or changed file 
> /etc/hosts.dhcps//fa:ec:59:d0:15:00 Feb 10 15:50:27
> dnsmasq-dhcp[24347]: read /etc/hosts.dhcps//fa:ec:59:d0:15:00 Feb
> 10 15:50:27 dnsmasq[24347]: inotify, new or changed file 
> /etc/hosts.options//fa:ec:59:d0:15:00 Feb 10 15:50:27
> dnsmasq-dhcp[24347]: read /etc/hosts.options//fa:ec:59:d0:15:00
> 
> 
> The last 4 lines show a new VM is added, configs in dhcp-hostsdir
> and dhcp-optsdir are found.
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJU36vkAAoJEBXN2mrhkTWiAZsP/0b65ATHbNnuHKhFbVJl7Izm
N+3kTKnnTc1bplHWLSGORucjf96+orHiFkl8dz8/7R9vplfCklEJ0SxqCXiUn7Ta
LIQofGF9CJcsLs1d4NzrFkniKmSaVO3hRxHTFvdnmoOEgL+DV5fq1BkXEb4X+BpC
+r1NZBfQCrF3fRPkPz69QLXZza8lcligr0VX/Al9qfv2WITp/1BAfsfCGhW6AZp8
2HGQeyDUS8AlXrSLiFwphoGC9hPat5A4LbrrcnuZ8SKQVAi/gr71bXjzItpWkf2R
gdQbUCmZ8QR8EuyBakS+fGJTQdTZZosl06dPhxszFiMfQgatiMWbdUXM86y1kRrD
6n8+J1BH9TcdRVhhjtAiq24x01ehCQEHSH8HvunubVMFIuQ25mmA7ACqN7Bjgohp
D7k65iggZ+onMlOsqArVaMxMubiDvqnrQfx73ZErOJx4VXpCtPrf7ITmEGFV9zsK
TJbjOog03Ubcxd1TM0yAOkMIimaI1jfGmudhP6R+bJcrSXpebXzBZLC6fbqvqu9X
rUE+3+XlX7iqVgOhMbfK4M3Gd8kixqLSMHBTgQ88eehAjRyJC3t0x04aSrJaO6kE
S6nBjdiCpAMObA4rkWNecDaAliL5C1/9m3PNOzytf1wNHytlDR+y15x4/alTy0Uy
OtK+7yZPtoRIdE9PBTiw
=oh48
-----END PGP SIGNATURE-----

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to