Am 15.05.2017 um 03:29 schrieb Chris L:
> Maybe this:
> "Do not use 'local' as a domain name. It will cause local hosts running mDNS 
> (avahi, bonjour, etc.) to be unable to resolve local hosts not running mDNS.”

Nope, sorry, it's not that easy.  It fails *all* entries made in that
list, even if they're used to override valid external DNS names (e.g.
when I want somehost.example.com to resolve to a 192.168.x.x internally).

Judging from the logs, it seems that during startup, dnsmasq believes
/etc/hosts is empty - it states that it read 0 hosts from there.

I now have an ugly two-step workaround:
1) Install ShellCmd package.
2) Add a shellcmd entry 'pfSsh.php playback svc restart dnsmasq'.

After that, the log file states the correct number of hosts in /etc/hosts.

Could this be some kind of weird race condition, maybe?  'dnsmasq'
starting before the hosts from the XML are added to /etc/hosts?

Hmm - even weirder - first it reports the correct number, then it's down
to 0, then it reports the correct number again twice
(the 07:43:45 entries are triggered by the workaround listed above):

May 15 07:43:43 cora dnsmasq[17417]: started, version 2.76 cachesize 10000
May 15 07:43:43 cora dnsmasq[17417]: compile time options: IPv6
GNU-getopt no-DBus i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset
auth DNSSEC loop-detect no-inotify
May 15 07:43:43 cora dnsmasq[17417]: reading /etc/resolv.conf
May 15 07:43:43 cora dnsmasq[17417]: ignoring nameserver 127.0.0.1 -
local interface
May 15 07:43:43 cora dnsmasq[17417]: using nameserver 192.168.0.1#53
May 15 07:43:43 cora dnsmasq[17417]: read /etc/hosts - 7 addresses
May 15 07:43:44 cora dnsmasq[17417]: read /etc/hosts - 0 addresses
May 15 07:43:44 cora dnsmasq[17417]: exiting on receipt of SIGTERM
May 15 07:43:45 cora dnsmasq[32840]: started, version 2.76 cachesize 10000
May 15 07:43:45 cora dnsmasq[32840]: compile time options: IPv6
GNU-getopt no-DBus i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset
auth DNSSEC loop-detect no-inotify
May 15 07:43:45 cora dnsmasq[32840]: reading /etc/resolv.conf
May 15 07:43:45 cora dnsmasq[32840]: ignoring nameserver 127.0.0.1 -
local interface
May 15 07:43:45 cora dnsmasq[32840]: using nameserver 192.168.0.1#53
May 15 07:43:45 cora dnsmasq[32840]: read /etc/hosts - 7 addresses
May 15 07:43:45 cora dnsmasq[32840]: read /etc/hosts - 7 addresses

Kind Regards,
Stefan Baur
_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold

Reply via email to