sdccf 发表于 2008-04-22 13:24

Solaris系统dns服务环境配置


作者: qtsmy出自: http://www.linuxdiyf.com
方法如下——
以root用户修改如下配置文件:
a、文件/etc/resolv.conf,如果没有需要建立该文件:添加dns的服务器地址
# more resolv.conf
nameserver 211.101.142.65
nameserver 202.106.0.20
b、文件/etc/ nsswitch.conf
# more nsswitch.conf,给hosts//添加dns配置项
hosts: files dns
配置后,检验方法:
# ping
www.linuxdiyf.com
用ping验证解析是否生效
【如果防火墙上做了限制 有可能无法ping。】
www.google.com
is alive
如果dns不生效的话,返回的结果是不一样的,如果解析不生效
会报unknown host的错误。
也可以用命令nslookup 解析验证。
说明:有时候配置后,dns并不生效,请重启机器。

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31/showart_572571.html
页: [1]
查看完整版本: Solaris系统dns服务环境配置