日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

在SUN機器上設(shè)置DNS客戶端

在SUN機器上設(shè)置DNS客戶端需要二個步驟:
1.創(chuàng)建/etc/resolv.conf文件
一個示例的resolv.conf文件如下:
domain sun.com
nameserver 127.0.0.1
nameserver 192.1.0.11
nameserver 192.1.0.10
文件中主要包含二部分內(nèi)容 , 第一行是
domain 你申請的域名 , 例 , 申請域名為pIEcust-cn.net.edu.cn , 則寫為:
domain piecust-cn.net.edu.cn
第二行是名稱服務(wù)器 , 示例表示本機就是DNS服務(wù)器 , 其格式為
nameserver
IP地址 , 該段可以是DNS的主域名稱服務(wù)器、備份域名稱服務(wù)器或緩沖名稱服務(wù)器 , 但是書寫時不可以超過3個服務(wù)器 。如果網(wǎng)絡(luò)中只有一個DNS服務(wù)器且地址為192.1.0.11 , 則可以寫為:
nameserver 192.1.0.11

2.修改/etc/nsswitch.conf , 是客戶機能夠使用DNS服務(wù)
SUN客戶機缺省使用files作為服務(wù)器名字的解析 , 為了使用DNS名稱解析服務(wù)器 , 必須在/etc/nsswitch.conf指明使用DNS服務(wù) 。
#
# /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
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項就可以

    推薦閱讀