/etc/resolv.conf文件
記錄DNS服務(wù)器的地址和域名
關(guān)鍵字:
domainname
nameserver
# more /etc/resolv.conf
nameserver 172.16.255.3
domainname sunrise.com.cn
/etc/nsswitch.conf文件
記錄主機(jī)名的搜索順序等信?nbsp;
# more /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copIEd over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other 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
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
ipnodes: files
…
…
將這個(gè)文件的hosts記錄配置成hosts: files dns
nslookup命令
用于查詢DNS服務(wù)器
用于驗(yàn)證客戶端的設(shè)置
用于下載DNS數(shù)據(jù)庫(kù)
# nslookup
Default Server: ns.zjhzptt.net.cn
Address: 202.96.96.68
> www.sun.com
Server: ns.zjhzptt.net.cn
Address: 202.96.96.68
Non-authoritative answer:
Name: www.sun.com
Address: 192.18.97.241
>
啟動(dòng)時(shí),nslookup缺省地以本地服務(wù)器為目標(biāo) 。響應(yīng)中包括目標(biāo)服務(wù)器的名字和地址 。>是提示符,這意味著可以開(kāi)始發(fā)送名字服務(wù)詢問(wèn)或配置 。
推薦閱讀
- 第四章 SUN 6800/4810/4800/3800 系統(tǒng)管理手冊(cè)筆記
- Solaris DNS安裝和配置
- WinFS仍待完善 可能無(wú)緣Longhorn客戶端
- 什么電腦軟件可以修復(fù)DNS
- 蘋(píng)果手機(jī)在哪設(shè)置DNS地址?iPhone怎么修改DNS地址
- 安卓手機(jī)在哪修改DNS地址?Android手機(jī)怎么修改DNS地址
- 愛(ài)奇藝會(huì)員怎么共享賬號(hào)
- 私人dns是什么功能
- dns異常
- windows無(wú)法與設(shè)備或資源主dns
