Chinaunix首页 | 论坛 | 博客
  • 博客访问: 591130
  • 博文数量: 718
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 4960
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-17 13:24
文章分类

全部博文(718)

文章存档

2011年(1)

2008年(717)

我的朋友

分类:

2008-10-17 13:27:39


  /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
  
  >
  Server: ns.zjhzptt.net.cn
  Address: 202.96.96.68
  
  Non-authoritative answer:
  Name:
  Address: 192.18.97.241
  
  >
  启动时,nslookup缺省地以本地服务器为目标。响应中包括目标服务器的名字和地址。>是提示符,这意味着可以开始发送名字服务询问或配置。
  
  
【责编:admin】

--------------------next---------------------

阅读(193) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~