AIX配置DNS问题
潇湘秦 2011-11-08 02:51:16 我在一个测试库上做DNS解析测试
配置了/etc/netsvc.conf ,/etc/resolv.conf 文件 分别如下
cat /etc/netsvc.conf
# The sendmail command searches the local /etc/aliases file, or uses NIS if specified for
# resolving aliases. You can override the default by specifying how to resolve aliases
# in the /etc/netsvc.conf file.
# To specify alias ordering to the sendmail command, enter the following:
# alias = value [, value]
#
# Use one or more of the following values for the alias keyword:
# files Searches the local /etc/aliases file for the alias
# nis Uses NIS services for resolving alias
# Example:
# aliases = nis, files
#
hosts = local,bind,nis
解析顺序 先查找本机的 hosts文件 然后DNS服务器 然后nis
:/etc# cat resolv.conf
; generated by /sbin/dhclient-script
search askey.com.tw ####域名和DNS服务器
nameserver 10.7.46.9
nameserver 10.7.22.1
问题如下:
1.
jupiter:/etc# nslookup wmsrac1 ###我本机hosts文件中有 wmsrac2 但是还是用的DNS?为什么没有首选hosts文件
Server: 10.7.46.9
Address: 10.7.46.9#53
Non-authoritative answer:
Name: wmsrac1.askey.com.tw
Address: 10.7.46.13
2.
jupiter:/etc# nslookup ldbrac1 ###本地hosts 有ldbrac1的映射关系 但是只走了DNS 且没有解析到
;; Got SERVFAIL reply from 10.7.46.9, trying next server
Server: 10.7.22.1
Address: 10.7.22.1#53
** server can't find ldbrac1: SERVFAIL
为什么?我配置的netsvc.conf 文件没有起到作用呢?
还是还有其他的文件需要配置?请高手指点