Does anyone happen to have a working configuration where you are successfully using the "mdnsd" source for the "hosts" database in /etc/nsswitch.conf? (i.e. without also listing "dns" as a source)
I've been unable to get this to work properly either on NetBSD-10 or in
my locally hacked tree, or in 10.99.11 (an old -current I have running).
I normally get answers for properly advertised mDNS hostnames within
the .local domain (though not on the 10.99.11 host -- its mdnsd seems
entirely broken)
However using just the "mdnsd" source does not manage to resolve
anything via DNS:
$ /sbin/ping www.google.ca
ping: Cannot resolve "www.google.ca" (Resolver Error 0 (no error))
Logging is disabled entirely in the default mdnsd binary -- which is
very unhelpful, so I fixed that, but all I see is that my nameservers
are "Penalised", seemingly because mdnsd never gets an answer from them?
set_peer_pid: Not Supported on this version of OS
11: connect_callback: Adding FD for uid 0
11: DNSServiceCreateConnection START PID[-1]()
11: Result code socket 12 created 00000000 00000001
11: DNSServiceQueryRecord(5000, 0, xentral.avoncote.ca., Addr) START PID[-1]()
GetServerForQuestion: 00007D999D83CCB8 DNS server (00007D999D884300)
10.0.1.129:53 (Penalty Time Left 0) (Scope None:0000000000000000:-1) found for
name xentral.avoncote.ca. (Addr)
InitDNSConfig: question 00007D999D83CCB8 xentral.avoncote.ca. (Addr) Timeout
30, DNS Server 10.0.1.129:53
11: Result code socket 12 closed 00000000 00000001 (0)
uDNS_CheckCurrentQuestion: Sent 2 unanswered queries for xentral.avoncote.ca.
(Addr) to 10.0.1.129:53 (.)
PenalizeDNSServer: Penalizing DNS server 10.0.1.129 question for question
00007D999D83CCB8 xentral.avoncote.ca. (Addr) SuppressUnusable 0
PenalizeDNSServer: Strict Unicast Ordering is FALSE
PenalizeDNSServer: Penalizing question type 1
GetServerForQuestion: 00007D999D83CCB8 DNS server (00007D999D884180)
10.0.1.139:53 (Penalty Time Left 0) (Scope None:0000000000000000:-1) found for
name xentral.avoncote.ca. (Addr)
PenalizeDNSServer: Server for xentral.avoncote.ca. (Addr) changed to
10.0.1.139:53 (.)
11: Cancel 00000000 00000001
11: DNSServiceQueryRecord(5000, 0, xentral.avoncote.ca., Addr) STOP PID[-1]()
11: DNSServiceCreateConnection STOP PID[-1]()
11: Removing FD
DNS server 10.0.1.129:53 out of penalty box
Note that my 10.0.1.129 host is running unbound and it happily answers
DNS queries on port 53 quite quickly.
So the only thing that works reasonably is the "multicast_dns" source,
which of course then also requires "dns" be given as well, and that all
incurs several extra (though normally tiny) delays:
hosts: files multicast_dns dns
("hosts: files mdnsd dns" also works, but very slowly for DNS-only
names, and of course that's now how it is intended to be used)
--
Greg A. Woods <[email protected]>
Kelowna, BC +1 250 762-7675 RoboHack <[email protected]>
Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgpLN9LAC8gX_.pgp
Description: OpenPGP Digital Signature
