xref: /titanic_51/usr/src/lib/libdns_sd/README (revision 5ffb0c9b03b5149ff4f5821a62be4a52408ada2a)
14b22b933Srs200217#
24b22b933Srs200217# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
34b22b933Srs200217# Use is subject to license terms.
44b22b933Srs200217#
54b22b933Srs200217# CDDL HEADER START
64b22b933Srs200217#
74b22b933Srs200217# The contents of this file are subject to the terms of the
84b22b933Srs200217# Common Development and Distribution License (the "License").
94b22b933Srs200217# You may not use this file except in compliance with the License.
104b22b933Srs200217#
114b22b933Srs200217# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
124b22b933Srs200217# or http://www.opensolaris.org/os/licensing.
134b22b933Srs200217# See the License for the specific language governing permissions
144b22b933Srs200217# and limitations under the License.
154b22b933Srs200217#
164b22b933Srs200217# When distributing Covered Code, include this CDDL HEADER in each
174b22b933Srs200217# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
184b22b933Srs200217# If applicable, add the following below this CDDL HEADER, with the
194b22b933Srs200217# fields enclosed by brackets "[]" replaced with your own identifying
204b22b933Srs200217# information: Portions Copyright [yyyy] [name of copyright owner]
214b22b933Srs200217#
224b22b933Srs200217# CDDL HEADER END
234b22b933Srs200217#
24*5ffb0c9bSToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
254b22b933Srs200217#
26*5ffb0c9bSToomas SoomeUpdated from upstream version mDNSResponder-576.30.4
274b22b933Srs200217
284b22b933Srs200217Multicast DNS and Service Discovery support in Solaris using the
294b22b933Srs200217Apple Bonjour source code (v107.6). Apple Bonjour source can be
304b22b933Srs200217downloaded from:
314b22b933Srs200217 	http://developer.apple.com/networking/bonjour/download/
324b22b933Srs200217The following components are integrated from the Apple Bonjour
334b22b933Srs200217source in Solaris:
344b22b933Srs200217  libdns_sd: 	usr/src/lib/libdns_sd <dns_sd.h>
354b22b933Srs200217  libjdns_sd:   usr/src/lib/libdns_sd/java/common
364b22b933Srs200217  dnssd.jar:    usr/src/lib/libdns_sd/java/com (incl. examples)
374b22b933Srs200217  mdnsd:	usr/src/cmd/cmd-inet/usr.lib/mdnsd
384b22b933Srs200217  dns-sd:	usr/src/cmd/cmd-inet/usr.bin/dns-sd.c
394b22b933Srs200217
404b22b933Srs200217Following fixes have been made to the Apple Bonjour source
414b22b933Srs200217integrated in Solaris:
424b22b933Srs200217* 64-bit support by adding pad bytes in ipc_msg_hdr_struct
434b22b933Srs200217* 64-bit support in libjdns_sd, dnssd.jar (JNISupport.c, DNSSD.java)
444b22b933Srs200217* mdnsd switches to user 'noaccess' and not 'nobody' after init
454b22b933Srs200217* Fixes to support IPv6 (mDNSPosix.c, mDNSUNP.c)
464b22b933Srs200217* Fix error raised when uDNS.c is compiled with Sun Studio compiler
474b22b933Srs200217* Fix in dnssd_clientstub.c to not check errno when recvmsg returns 0
484b22b933Srs200217* mDNSDebug.c modified to not send msgs directly to console when
494b22b933Srs200217  syslog call returns an error. Logs the messages at LOG_INFO level
504b22b933Srs200217  and not LOG_ERR
514b22b933Srs200217
524b22b933Srs200217In addition the project introduces the following changes:
534b22b933Srs200217* A new nss_mdns module is introduced to use Multicast DNS (mdns)
544b22b933Srs200217  for resolving link-local hostnames and is located at:
554b22b933Srs200217    usr/src/lib/nsswitch/mdns
564b22b933Srs200217* snoop updated to decode mDNS packets
574b22b933Srs200217* updated /etc/services to include mdns
584b22b933Srs200217* <netinet/in.h> updated to include mdns
594b22b933Srs200217* svc:/network/dns/multicast:default introduced to manage mDNS daemon
604b22b933Srs200217* solaris.smf.manage.mdns & solaris.smf.value.mdns authorizations
614b22b933Srs200217  to modify nss_mdns configuration in svc:/network/dns/multicast:default
624b22b933Srs200217  Both authorizations added in network management execution profile.
634b22b933Srs200217* Default nsswitch.dns includes mdns as source for hosts & ipnodes
644b22b933Srs200217* nscd daemon updated to support mdns
654b22b933Srs200217* SUNWdsdu and SUNWdsdr packages deliver all the new mDNS
664b22b933Srs200217  service discovery components.
67