当前位置: 首页 > 图文教程 > 服务器 > DNS服务器 > 企业网站DNS服务器创建之Solaris篇----DNS配置相关的文件

DNS服务器
来龙去脉分析 深入研究DNS原理
详细讲解如何进行DNS故障排除
Win 2K动态DNS的安全考虑
DNS MX 记录查询方法
问答之间,DNS疑惑灰飞烟灭
解读影响网站稳定性的重要因素:DNS
Windows服务器宝典一式:DNS调教技巧
设置过多DNS服务器地址的问题
DNS完全解惑问答
微软的AD与非动态DNS
让windows自带的DNS服务支持泛解析
在SUN机器上设置DNS客户端DNS
零起步搞定DNS(网络域名)的解析故障
Win2000之DNS服务器的设置
windows server 2003之DNS
解答:巧设DNS提高系统登录速度
讨论一下智能DNS问题
如何配置Win 2003的DNS服务器
一步步从Win2k DNS 移植到 Linux 下
微软交流:关于DNS的不完全总结

企业网站DNS服务器创建之Solaris篇----DNS配置相关的文件


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-17   浏览: 41 ::
收藏到网摘: n/a

  和DNS配置相关的文件

  包括:/etc/defaultdomain、/etc/nsswitch.conf、/etc/resolv.conf 三个文件权限只需root可读即可。

  1) /etc/defaultdomain

  "/etc/defaultdomain"文件给出确省域名,该文件内容为域名名称,例如:

--------------------------------  
nanjing.org.cn
---------------------------------
 
  表示缺省域名为" nanjing.org.cn ",以后仅使用某个主机名时,系统假设为缺省域中的主机。例如,"ping www"将被理解为"ping www.nanjing.org.cn "。

  2) /etc/nsswitch.conf

    如果使用DNS,则必须在该文件的"HOST"一项中给出"DNS"。缺省为使用文件,即"FILES",该选项可以保留。

-------------------------------------------------------- 
# /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
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: files dns 表示:将使用/etc/inet/hosts文件解析主机,如果无法解析主机名将使用DNS。

  3) /etc/resolv.conf

  该文件给出域名和域名服务器地址。

----------------------------------------------------
; /etc/resolv.conf file
domain nanjing.org.cn ;域名
nameserver 61.155.107.131 ;域名服务器地址
;域名服务器地址可以给出多个
-----------------------------------------------------