天天看点

设置solaris主机为DNS客户端

1.修改/etc/resolv.conf文件,比如

domain xxx.xxx //网络域

nameserver 10.161.32.01//dns服务器

2.修改/etc/nsswitch.conf文件

#

# /etc/nsswitch.files:

#

# An example file that could be copied over to /etc/nsswitch.conf; it

# does not use any naming service.

#

# "hosts:" and "services:" in this file are used only if the

# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files

group:      files

hosts:      files  dns  //指定主机搜索顺序,先是本地hosts文件,然后是dns服务器

ipnodes:    files

networks:   files

protocols:  files

rpc:        files

ethers:     files

netmasks:   files      

bootparams: files

publickey:  files

# At present there isn't a 'files' backend for netgroup;  the system will

#   figure it out pretty quickly, and won't use netgroups at all.

netgroup:   files

automount:  files

aliases:    files

services:   files

sendmailvars:   files

printers:       user files

auth_attr:  files

prof_attr:  files

project:    files