/etc/resolv.conf文件
记录DNS服务器的地址和域名
关键字:
domainname
nameserver
# more /etc/resolv.conf
nameserver 172.16.255.3
domainname sunrise.com.cn
/etc/nsswitch.conf文件
记录主机名的搜索顺序等信息
# 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
…
…
将这个文件的hosts记录配置成hosts: files dns
nslookup命令
用于查询DNS服务器
用于验证客户端的设置
用于下载DNS数据库
# 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
>
启动时,nslookup缺省地以本地服务器为目标。响应中包括目标服务器的名字和地址。>是提示符,这意味着可以开始发送名字服务询问或配置。 查看 http://www.qqread.com/solaris/f581498406.html
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- 网络管理实用手册 (22421篇文章)
- 网络故障手册 (14465篇文章)
- DNS技术专题 (499篇文章)
- 网络组网专题 (12494篇文章)
- 网络建设 (14032篇文章)
- Solaris 10简单教程 (609篇文章)
- Solaris基础知识入门 (4621篇文章)
- 网络管理技术 (819篇文章)
- 网络管理技巧进阶 (838篇文章)
- dns服务器配置 (134篇文章)
- Samba服务器在Solaris下的高级应用 (1次浏览)
- Solaris 10下DNS服务器安全攻略 (0次浏览)
- 为Solaris服务器配置开源安全工具(下) (0次浏览)
- 为Solaris服务器配置开源安全工具(上) (0次浏览)
- 在Solaris下使用USB存储设备 (0次浏览)
- Solaris 10 系统维护 (0次浏览)



