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