Solaris网络管理:DNS客户端的设置

博客涉及Solaris系统,围绕网络、服务器和数据库展开,虽未给出具体内容,但推测是关于Solaris在网络环境下服务器搭建及数据库应用等信息技术相关内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/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缺省地以本地服务器为目标。响应中包括目标服务器的名字和地址。>是提示符,这意味着可以开始发送名字服务询问或配置。

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值