歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> solaris10 DNS客戶端配置

solaris10 DNS客戶端配置

日期:2017/2/28 11:08:39   编辑:關於Unix


在SUN機器上設置DNS客戶端需要二個步驟:
nameserver 127.0.0.1
nameserver 192.1.0.11
nameserver 192.1.0.10
文件中主要包含二部分內容,第一行是
第二行是名稱服務器,示例表示本機就是DNS服務器,其格式為
nameserver
IP地址,該段可以是DNS的主域名稱服務器、備份域名稱服務器或緩沖名稱服務器,但是書寫時不可以超過3個服務器。如果網絡中只有一個DNS服務器且地址為192.1.0.11,則可以寫為:nameserver 192.1.0.11
   
#
# /etc/nsswitch.files:
#
# 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
networks: files dns
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
如上例,只要在hosts一項添加dns項就可以
更改後不必重新啟動機器和服務器,直接可以用,比linux多了一個文件。
Copyright © Linux教程網 All Rights Reserved