xref: /aosp_15_r20/external/mdnsresponder/mDNSPosix/libnss_mdns.8 (revision 48a54d368dc4fa860885eef7b70b6c53499e7c25)
1*48a54d36SAndroid Build Coastguard Worker.\"
2*48a54d36SAndroid Build Coastguard Worker.\" See section LICENSE for license information.
3*48a54d36SAndroid Build Coastguard Worker.\"
4*48a54d36SAndroid Build Coastguard Worker.Dd June 15, 2004
5*48a54d36SAndroid Build Coastguard Worker.Dt LIBNSS_MDNS 8
6*48a54d36SAndroid Build Coastguard Worker.Os
7*48a54d36SAndroid Build Coastguard Worker.Sh NAME
8*48a54d36SAndroid Build Coastguard Worker.Nm libnss_mdns
9*48a54d36SAndroid Build Coastguard Worker.Nd name service switch module to support Apple mdnsd
10*48a54d36SAndroid Build Coastguard Worker.Sh DESCRIPTION
11*48a54d36SAndroid Build Coastguard WorkerThe
12*48a54d36SAndroid Build Coastguard Worker.Nm
13*48a54d36SAndroid Build Coastguard Workershared library implements a name service switch module to interface with Apple
14*48a54d36SAndroid Build Coastguard Workermdnsd.  It is enabled by adding
15*48a54d36SAndroid Build Coastguard Worker.Ql mdns
16*48a54d36SAndroid Build Coastguard Workerto the
17*48a54d36SAndroid Build Coastguard Worker.Ql hosts:
18*48a54d36SAndroid Build Coastguard Workerline of
19*48a54d36SAndroid Build Coastguard Worker.Xr nsswitch.conf 5 .
20*48a54d36SAndroid Build Coastguard WorkerThis will cause calls to
21*48a54d36SAndroid Build Coastguard Worker.Xr gethostbyname 3 ,
22*48a54d36SAndroid Build Coastguard Worker.Xr gethostbyname2 3
23*48a54d36SAndroid Build Coastguard Workerand
24*48a54d36SAndroid Build Coastguard Worker.Xr gethostbyaddr 3
25*48a54d36SAndroid Build Coastguard Workerto include mdnsd in their lookup path.
26*48a54d36SAndroid Build Coastguard Worker.Pp
27*48a54d36SAndroid Build Coastguard WorkerThe
28*48a54d36SAndroid Build Coastguard Worker.Nm
29*48a54d36SAndroid Build Coastguard Workershared library should be installed in the system library paths, typically in
30*48a54d36SAndroid Build Coastguard Worker.Pa /lib .
31*48a54d36SAndroid Build Coastguard Worker.Sh FILES
32*48a54d36SAndroid Build Coastguard Worker.Bl -tag -width Pa -compact
33*48a54d36SAndroid Build Coastguard Worker.It Pa /etc/nss_mdns.conf
34*48a54d36SAndroid Build Coastguard Workerconfiguration options
35*48a54d36SAndroid Build Coastguard Worker.El
36*48a54d36SAndroid Build Coastguard Worker.Sh EXAMPLES
37*48a54d36SAndroid Build Coastguard WorkerIn
38*48a54d36SAndroid Build Coastguard Worker.Pa /etc/nsswitch.conf :
39*48a54d36SAndroid Build Coastguard Worker.Dl hosts: files mdns dns
40*48a54d36SAndroid Build Coastguard Worker.Pp
41*48a54d36SAndroid Build Coastguard WorkerThis will cause the name service switch to lookup hostnames first using
42*48a54d36SAndroid Build Coastguard Worker.Pa /etc/hosts ,
43*48a54d36SAndroid Build Coastguard Workerthen mdns and finally via DNS.
44*48a54d36SAndroid Build Coastguard Worker.Sh DIAGNOSTICS
45*48a54d36SAndroid Build Coastguard Worker.Nm
46*48a54d36SAndroid Build Coastguard Workerdumps status information via
47*48a54d36SAndroid Build Coastguard Worker.Xr syslog 3 .
48*48a54d36SAndroid Build Coastguard Worker.Sh SEE ALSO
49*48a54d36SAndroid Build Coastguard Worker.\" Cross-references should be ordered by section (low to high), then in
50*48a54d36SAndroid Build Coastguard Worker.\"     alphabetical order.
51*48a54d36SAndroid Build Coastguard Worker.Xr nsswitch.conf 5 ,
52*48a54d36SAndroid Build Coastguard Worker.Xr nss_mdns.conf 5 ,
53*48a54d36SAndroid Build Coastguard Worker.Xr ldconfig 8
54*48a54d36SAndroid Build Coastguard Worker.Pp
55*48a54d36SAndroid Build Coastguard Worker.Li info libc Qq Name Service Switch
56*48a54d36SAndroid Build Coastguard Worker.\" .Sh STANDARDS
57*48a54d36SAndroid Build Coastguard Worker.Sh HISTORY
58*48a54d36SAndroid Build Coastguard Worker.Nm
59*48a54d36SAndroid Build Coastguard Workerwas originally written for
60*48a54d36SAndroid Build Coastguard Worker.An NICTA Bq http://www.nicta.com.au/ .
61*48a54d36SAndroid Build Coastguard Worker.Sh AUTHORS
62*48a54d36SAndroid Build Coastguard Worker.An "Andrew White" Bq [email protected]
63*48a54d36SAndroid Build Coastguard Worker.Sh BUGS
64*48a54d36SAndroid Build Coastguard WorkerReturn values for obscure error conditions may not match those expected by nsswitch code.
65*48a54d36SAndroid Build Coastguard Worker.Pp
66*48a54d36SAndroid Build Coastguard WorkerVersion 0.62 of mdnsd does not support an option to force link-local multicast lookups.
67*48a54d36SAndroid Build Coastguard Worker.Ql PTR
68*48a54d36SAndroid Build Coastguard Workerreverse lookups for non-link-local domains will not function correctly.
69*48a54d36SAndroid Build Coastguard Worker.Sh LICENSE
70*48a54d36SAndroid Build Coastguard WorkerThis software is licensed under the NICTA Public Source License version 1.0
71*48a54d36SAndroid Build Coastguard Worker.Ss NICTA Public Software Licence
72*48a54d36SAndroid Build Coastguard WorkerVersion 1.0
73*48a54d36SAndroid Build Coastguard Worker.Pp
74*48a54d36SAndroid Build Coastguard WorkerCopyright 2004 National ICT Australia Ltd
75*48a54d36SAndroid Build Coastguard Worker.Pp
76*48a54d36SAndroid Build Coastguard WorkerAll rights reserved.
77*48a54d36SAndroid Build Coastguard Worker.Pp
78*48a54d36SAndroid Build Coastguard WorkerBy this licence, National ICT Australia Ltd (NICTA) grants permission,
79*48a54d36SAndroid Build Coastguard Workerfree of charge, to any person who obtains a copy of this software
80*48a54d36SAndroid Build Coastguard Workerand any associated documentation files ("the Software") to use and
81*48a54d36SAndroid Build Coastguard Workerdeal with the Software in source code and binary forms without
82*48a54d36SAndroid Build Coastguard Workerrestriction, with or without modification, and to permit persons
83*48a54d36SAndroid Build Coastguard Workerto whom the Software is furnished to do so, provided that the
84*48a54d36SAndroid Build Coastguard Workerfollowing conditions are met:
85*48a54d36SAndroid Build Coastguard Worker.Bl -bullet
86*48a54d36SAndroid Build Coastguard Worker.It
87*48a54d36SAndroid Build Coastguard WorkerRedistributions of source code must retain the above copyright
88*48a54d36SAndroid Build Coastguard Workernotice, this list of conditions and the following disclaimers.
89*48a54d36SAndroid Build Coastguard Worker.It
90*48a54d36SAndroid Build Coastguard WorkerRedistributions in binary form must reproduce the above copyright
91*48a54d36SAndroid Build Coastguard Workernotice, this list of conditions and the following disclaimers in
92*48a54d36SAndroid Build Coastguard Workerthe documentation and/or other materials provided with the
93*48a54d36SAndroid Build Coastguard Workerdistribution.
94*48a54d36SAndroid Build Coastguard Worker.It
95*48a54d36SAndroid Build Coastguard WorkerThe name of NICTA may not be used to endorse or promote products
96*48a54d36SAndroid Build Coastguard Workerderived from this Software without specific prior written permission.
97*48a54d36SAndroid Build Coastguard Worker.El
98*48a54d36SAndroid Build Coastguard Worker.Pp
99*48a54d36SAndroid Build Coastguard WorkerEXCEPT AS EXPRESSLY STATED IN THIS LICENCE AND TO THE FULL EXTENT
100*48a54d36SAndroid Build Coastguard WorkerPERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED "AS-IS" AND
101*48a54d36SAndroid Build Coastguard WorkerNICTA MAKES NO REPRESENTATIONS, WARRANTIES OR CONDITIONS OF ANY
102*48a54d36SAndroid Build Coastguard WorkerKIND, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
103*48a54d36SAndroid Build Coastguard WorkerREPRESENTATIONS, WARRANTIES OR CONDITIONS REGARDING THE CONTENTS
104*48a54d36SAndroid Build Coastguard WorkerOR ACCURACY OF THE SOFTWARE, OR OF TITLE, MERCHANTABILITY, FITNESS
105*48a54d36SAndroid Build Coastguard WorkerFOR A PARTICULAR PURPOSE, NONINFRINGEMENT, THE ABSENCE OF LATENT
106*48a54d36SAndroid Build Coastguard WorkerOR OTHER DEFECTS, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR
107*48a54d36SAndroid Build Coastguard WorkerNOT DISCOVERABLE.
108*48a54d36SAndroid Build Coastguard Worker.Pp
109*48a54d36SAndroid Build Coastguard WorkerTO THE FULL EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL
110*48a54d36SAndroid Build Coastguard WorkerNICTA BE LIABLE ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
111*48a54d36SAndroid Build Coastguard WorkerNEGLIGENCE) FOR ANY LOSS OR DAMAGE WHATSOEVER, INCLUDING (WITHOUT
112*48a54d36SAndroid Build Coastguard WorkerLIMITATION) LOSS OF PRODUCTION OR OPERATION TIME, LOSS, DAMAGE OR
113*48a54d36SAndroid Build Coastguard WorkerCORRUPTION OF DATA OR RECORDS; OR LOSS OF ANTICIPATED SAVINGS,
114*48a54d36SAndroid Build Coastguard WorkerOPPORTUNITY, REVENUE, PROFIT OR GOODWILL, OR OTHER ECONOMIC LOSS;
115*48a54d36SAndroid Build Coastguard WorkerOR ANY SPECIAL, INCIDENTAL, INDIRECT, CONSEQUENTIAL, PUNITIVE OR
116*48a54d36SAndroid Build Coastguard WorkerEXEMPLARY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THIS LICENCE,
117*48a54d36SAndroid Build Coastguard WorkerTHE SOFTWARE OR THE USE OF THE SOFTWARE, EVEN IF NICTA HAS BEEN
118*48a54d36SAndroid Build Coastguard WorkerADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
119*48a54d36SAndroid Build Coastguard Worker.Pp
120*48a54d36SAndroid Build Coastguard WorkerIf applicable legislation implies warranties or conditions, or
121*48a54d36SAndroid Build Coastguard Workerimposes obligations or liability on NICTA in respect of the Software
122*48a54d36SAndroid Build Coastguard Workerthat cannot be wholly or partly excluded, restricted or modified,
123*48a54d36SAndroid Build Coastguard WorkerNICTA's liability is limited, to the full extent permitted by the
124*48a54d36SAndroid Build Coastguard Workerapplicable legislation, at its option, to:
125*48a54d36SAndroid Build Coastguard Worker.Pp
126*48a54d36SAndroid Build Coastguard Worker.Bl -tag -width "a." -compact
127*48a54d36SAndroid Build Coastguard Worker.It a.
128*48a54d36SAndroid Build Coastguard Workerin the case of goods, any one or more of the following:
129*48a54d36SAndroid Build Coastguard Worker.Bl -tag -width "iii." -compact
130*48a54d36SAndroid Build Coastguard Worker.It i.
131*48a54d36SAndroid Build Coastguard Workerthe replacement of the goods or the supply of equivalent goods;
132*48a54d36SAndroid Build Coastguard Worker.It ii.
133*48a54d36SAndroid Build Coastguard Workerthe repair of the goods;
134*48a54d36SAndroid Build Coastguard Worker.It iii.
135*48a54d36SAndroid Build Coastguard Workerthe payment of the cost of replacing the goods or of acquiring
136*48a54d36SAndroid Build Coastguard Workerequivalent goods;
137*48a54d36SAndroid Build Coastguard Worker.It iv.
138*48a54d36SAndroid Build Coastguard Workerthe payment of the cost of having the goods repaired; or
139*48a54d36SAndroid Build Coastguard Worker.El
140*48a54d36SAndroid Build Coastguard Worker.It b.
141*48a54d36SAndroid Build Coastguard Workerin the case of services:
142*48a54d36SAndroid Build Coastguard Worker.Bl -tag -width "iii." -compact
143*48a54d36SAndroid Build Coastguard Worker.It i.
144*48a54d36SAndroid Build Coastguard Workerthe supplying of the services again; or
145*48a54d36SAndroid Build Coastguard Worker.It ii.
146*48a54d36SAndroid Build Coastguard Workerthe payment of the cost of having the services supplied again.
147*48a54d36SAndroid Build Coastguard Worker.El
148*48a54d36SAndroid Build Coastguard Worker.El
149