Commit Graph

18 Commits

Author SHA1 Message Date
mrg 93397973a5 remove an unused reference to LD32DIR. 2009-12-13 08:02:36 +00:00
he 41109a9b3e Only do the nss module if MKPIC != no. 2009-11-28 22:15:48 +00:00
tsarna bfe9f6f3f4 Two new features:
- Detect and adapt to resolv.conf changes through the use of the new
  res_check() API, so that for example changing the search list doesn't
  require restarting clients.

- A persistent mdnsd connection pool, with slow start (so that
  programs like ping, ssh, etc don't keep connections open) and age-out.
  NOTE: Tuning parameter values are just SWAGs.
2009-11-04 23:34:59 +00:00
tsarna 29822c6b8b For the multicast_dns only mode, be very restrictive in what lookups we
try. No point in making queries and waiting for timeouts on lookups that
will never succeed.

Now only does lookups for linklocal addresses (v4 or v6) and
"name.local" names (and dotless names, iff "local" is specified in the
resolv.conf search list).

Also, lower the timeout in this mode, since multicast lookups should
return pretty fast or not at all.
2009-10-26 00:46:19 +00:00
tsarna 6022b5b8d4 Major enhancements to mdnsd nsswitch support:
- nss_mdns renamed to nss_multicast_dns for clarity and less chance of
   confusion with nss_mdnsd (see next).
 - Support using mdnsd for all unicast too with new nss_mdnsd module
   (note: this mode requires an updated mdnsd too, not yet committed)
 - Implement resolv.conf "search" directive support. Needed for nss_mdnsd,
   potentially useful with nss_multicast_dns (you could now do
   "search example.com local" in resolv.conf if you wanted to and it would
   act as you might expect)
 - Add references in nsswitch.conf man page and sample file
 - Implement AI_CANONNAME
 - Various bug fixes
2009-10-25 00:17:06 +00:00
tsarna 76bb45a787 Add interface list dump to debugging output. 2009-10-24 04:04:40 +00:00
tsarna 7fc77dcc85 Add a copy of the Apache 2.0 license here as requested by reed. 2009-10-24 01:59:07 +00:00
tron 2f71c69757 Remove generated file "mdnsd.8" in "cleandir" target. 2009-10-18 17:43:11 +00:00
tron 1ce7a503cf Fix off by one in parser for "/etc/resolv.conf" found by SSP. 2009-10-18 11:54:37 +00:00
tsarna 94ebcd4993 Add nss_mdns, a nsswitch plugin for host lookups vis mDNS ("Bonjour"),
eg "hostname.local".  This is a work in progress, but basically
functional. (note: this requires mdnsd to be running.)
2009-10-05 03:54:17 +00:00
tsarna 3c8b3fccbd Make signals match what OS X and the manpage say. Implement toggles for
debug and packet trace logging.

Make this conditional on HAVE_SIGINFO. Presumably lack of SIGINFO as a
standard posix feature is why they went with different signals here in
the first place, but since we have it, let's use it.
2009-10-03 00:03:05 +00:00
christos 5cf5db250b if __packed exists, use it. I might revert this later when I fully implement
attribute for lint.
2009-10-02 21:05:10 +00:00
tsarna a4329df0cc mdnsd enhancements and fixes:
- Enhance the built-in drop-privs support and use it instead of
  having the rc.conf do it. Avoids log error on startup.
  From OpenSolaris, with enhancements.
- Add dumping of the unicast server list to the DumpStateLog
  debugging output, a'la Mac OS X.
- Fix a locking botch that caused warnings in the log.
- Fix FILE leak. From OpenSolaris.
2009-10-01 16:36:20 +00:00
tron 0b95c5420c Disable stack protection warnings for "uds_daemon.c" which allocates
variable sized buffers on the stack.
2009-10-01 10:01:14 +00:00
tron fd27aaa40c Disable stack protection warnings for "dnssd_clientstub.c" which allocates
variable sized buffers on the stack.
2009-10-01 09:35:08 +00:00
tsarna 7b256d8f31 Two minor tweaks:
- Build with MDNS_VERSIONSTR_NODTS a'la OpenSolaris, to exclude
  __DATE__/__TIME__, for repeatable builds.

- log under "mdnsd" instead of "mDNSResponder" to reduce confusion.
2009-10-01 00:22:03 +00:00
tsarna a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
tsarna 49d9bf9d6b Import Apple's mDNSResponder 212.1 per tech-net discussion 2009-09-29 22:14:03 +00:00