xref: /illumos-gate/usr/src/cmd/netfiles/nsswitch.dns (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
145916cd2Sjpk#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
545916cd2Sjpk# Common Development and Distribution License (the "License").
645916cd2Sjpk# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
214b22b933Srs200217# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# /etc/nsswitch.dns:
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate# An example file that could be copied over to /etc/nsswitch.conf; it uses
297c478bd9Sstevel@tonic-gate# DNS for hosts lookups, otherwise it does not use any other naming service.
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate# "hosts:" and "services:" in this file are used only if the
327c478bd9Sstevel@tonic-gate# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate# DNS service expects that an instance of svc:/network/dns/client be
357c478bd9Sstevel@tonic-gate# enabled and online.
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gatepasswd:     files
387c478bd9Sstevel@tonic-gategroup:      files
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate# You must also set up the /etc/resolv.conf file for DNS name
41*bbf21555SRichard Lowe# server lookup.  See resolv.conf(5). For lookup via mdns
42*bbf21555SRichard Lowe# svc:/network/dns/multicast:default must also be enabled. See mdnsd(8)
434b22b933Srs200217hosts:      files dns mdns
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate# Note that IPv4 addresses are searched for in all of the ipnodes databases
467c478bd9Sstevel@tonic-gate# before searching the hosts databases.
474b22b933Srs200217ipnodes:   files dns mdns
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gatenetworks:   files
507c478bd9Sstevel@tonic-gateprotocols:  files
517c478bd9Sstevel@tonic-gaterpc:        files
527c478bd9Sstevel@tonic-gateethers:     files
537c478bd9Sstevel@tonic-gatenetmasks:   files
547c478bd9Sstevel@tonic-gatebootparams: files
557c478bd9Sstevel@tonic-gatepublickey:  files
567c478bd9Sstevel@tonic-gatenetgroup:   files
577c478bd9Sstevel@tonic-gateautomount:  files
587c478bd9Sstevel@tonic-gatealiases:    files
597c478bd9Sstevel@tonic-gateservices:   files
607c478bd9Sstevel@tonic-gateprinters:	user files
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateauth_attr:  files
637c478bd9Sstevel@tonic-gateprof_attr:  files
647c478bd9Sstevel@tonic-gateproject:    files
6545916cd2Sjpk
6645916cd2Sjpktnrhtp:     files
6745916cd2Sjpktnrhdb:     files
68