我想要一些域名的名称服务器- ip对。例如,有serverfault.com域。我想要:
NS1.SERVERFAULT.COM - 198.252.206.80
NS2.SERVERFAULT.COM - 198.252.206.81有可能吗?我试着使用nslookup,但没有成功。
更新。我找到命令: C:\Users\Nick>nslookup -type=ns serverfault.com,但它不适合我:
C:\Users\Nick>nslookup -type=ns serverfault.com
Server: UnKnown
Address: 62.68.141.212
Non-authoritative answer:
serverfault.com nameserver = ns3.serverfault.com
serverfault.com nameserver = ns4.serverfault.com
serverfault.com nameserver = ns2.serverfault.com
serverfault.com nameserver = ns1.serverfault.com发布于 2013-09-20 12:03:10
您想要的/一个查询的部分称为“权限”。记录类型称为NS。
我用“挖”来做这个。因为Windows缺乏工具,所以我在其中安装了(免费的、开源的) Cygwin包。
nslookup也可以这样做,在Windows系统中默认情况下是可用的。在我较旧的Windows系统上,随附的nslookup可以通过(至少)通过请求“所有记录”或"ns记录“来提供此信息。
下面使用我的XP框的cmd提示符来实现Google.com:
nslookup
> set type=NS
> google.com
Server: h-67-100-88-26.snfc.ca.megapath.net
Address: 67.100.88.26
Non-authoritative answer:
google.com nameserver = ns4.google.com
google.com nameserver = ns1.google.com
google.com nameserver = ns2.google.com
google.com nameserver = ns3.google.com
ns3.google.com internet address = 216.239.36.10
ns4.google.com internet address = 216.239.38.10
ns1.google.com internet address = 216.239.32.10
ns2.google.com internet address = 216.239.34.10
>下面是Windows XP公司版nslookup的帮助屏幕:
Commands: (identifiers are shown in uppercase, [] means optional)使用默认服务器NAME1 NAME2打印主机/域名的名称-打印信息,但使用NAME2作为服务器帮助或?-打印关于公共命令设置选项的信息-设置选项全打印选项,当前服务器和主机不是调试-打印调试信息不是d2 -打印详尽的调试信息不是defname向每个查询不是recurse追加域名-要求递归回答查询不是搜索-使用域搜索列表不是vc -始终使用虚拟电路domain=NAME -将默认域名设置为srchlist=N1/n2/./n6 -将域设置为N1,搜索列表设置为N1、N2,root=NAME -将根服务器命名为retry=X -将重试次数设置为X timeout=X -将初始超时间隔设置为X秒type=X - set查询类型(ex.A,ANY,CNAME,MX,NS,PTR,SOA,SRV) querytype=X --与类型class=X --集合查询类(ex )相同。在(Internet)中,任何不是msxfr -使用MS快速区域传输ixfrver=X -当前版本使用IXFR传输请求服务器名称-设置默认服务器的名称,使用当前默认服务器lserver名称-设置默认服务器名称,使用初始服务器finger 用户 -指当前默认主机上的可选名称-将当前默认服务器设置为根ls 选项域>档案 --域中的列表地址(可选:输出到文件) -a --列出规范名称和别名-d --列出所有记录-t类型--列出给定类型的列表记录(例如A、CNAME、MX、NS、PTR等)查看文件-对'ls‘输出文件进行排序,并使用pg退出程序查看它。
以下是第一个用于挖掘的“手册页”:
DIG(1) BIND9 DIG(1)名称dig - DNS查找实用程序
摘要dig @server -c类 -k文件名 -p port# -t型 -y [hmac:]名称:key -6 类型 求你...
dig [-h]
dig [global-queryopt...] [query...]DESCRIPTION dig ()是一种查询DNS名称服务器的灵活工具。它执行DNS查找,并显示从查询的名称服务器(S)返回的答案。大多数DNS管理员使用dig来解决DNS问题,因为它具有灵活性、易用性和输出清晰性。其他查找工具的功能往往比dig更少。
Although dig is normally used with command-line arguments, it also has
a batch mode of operation for reading lookup requests from a file. A
brief summary of its command-line arguments and options is printed when
the -h option is given. Unlike earlier versions, the BIND 9
implementation of dig allows multiple lookups to be issued from the
command line.
Unless it is told to query a specific name server, dig will try each of
the servers listed in /etc/resolv.conf.
When no command line arguments or options are given, dig will perform
an NS query for "." (the root).
It is possible to set per-user defaults for dig via ${HOME}/.digrc.
This file is read and any options in it are applied before the command
line arguments.
The IN and CH class names overlap with the IN and CH top level domains
names. Either use the -t and -c options to specify the type and class,
use the -q the specify the domain name, or use "IN." and "CH." when
looking up these top level domains.https://serverfault.com/questions/540444
复制相似问题