我有一个 Windows 2008 标准服务器,它可以按主机名 ping 并给我正确的 IP 地址,但是如果我尝试对收到的主机名执行 nslookup:
server: nmgdc1.nmg.local
Address 192.168.1.10
DNS request timed out. timeout was 2 seconds.
DNS request timed out. timeout was 2 seconds.
*** Request to nmgdc1.nmg.local timed-out
Run Code Online (Sandbox Code Playgroud)
我可以通过 Web 浏览器正常访问该网站,并且可以从不同的客户端成功执行 nslookup。有任何想法吗?
几个小时前我进行了 DNS 更改,我只是运行了以下命令,输出如下:
nslookup mydomain.com ns1.mynameserver.com
Server: ns1.mynameserver.com
Address: 111.111.111.111
Name: mydomain.com
Addresses: 222.222.222.222
333.333.333.333
Run Code Online (Sandbox Code Playgroud)
222.222.222.222是旧IP。333.333.333.333是新的 IP 地址。为什么他们两个都会出现?既然是直接查询权威DNS服务器,难道不应该只显示新的IP地址吗?
有些人在我们网络中的一台机器上托管的虚拟机上安装和配置了 ubuntu。我最近注意到所有 DNS 查找都失败了,但我找不到解决方案。我尝试了多种名称服务器,根据谷歌的建议编辑了接口文件 100 次,但没有任何效果。
以下是一些信息,如果有人有任何想法,我将不胜感激。谢谢
nslookup
administrator@redmine:~$ nslookup google.com
;; connection timed out; no servers could be reached
administrator@redmine:~$ nslookup localhost
;; connection timed out; no servers could be reached
Run Code Online (Sandbox Code Playgroud)
nslookup 的 tcpdump [需要 3 次查找以获得任何 tcpdump 输出] - 已编辑
administrator@redmine:~$ sudo tcpdump -vvv -i any port 53
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
10:26:51.965297 IP (tos 0x0, ttl 64, id 9167, offset 0, flags [none], proto UDP (17), length 56)
10.80.15.5.56365 …Run Code Online (Sandbox Code Playgroud) 我正在尝试解决一些持续存在的连接问题,但在使用 dig 或 nslookup 时经常收到以下错误消息。
bash$ nslookup
> www.google.com
;; Warning: ID mismatch: expected ID 36298, got 0
;; Warning: ID mismatch: expected ID 36298, got 0
;; Warning: ID mismatch: expected ID 36298, got 0
bash$ dig www.google.com
;; Warning: ID mismatch: expected ID 34149, got 0
;; Warning: ID mismatch: expected ID 34149, got 0
;; Warning: ID mismatch: expected ID 34149, got 0
; <<>> DiG 9.8.3-P1 <<>> www.capitalone360.com
;; global options: +cmd
;; connection timed out; …Run Code Online (Sandbox Code Playgroud) 我遇到了一个每隔几天就会出现的问题,即 ping 无法解析 LAN 上的主机名(但 nslookup 可以)。这是在 OSX 10.9.2(最新)上。
这种情况下的机器称为“solo”,尽管它可以在不同时间与其他主机名一起出现。我的网络基础设施没有任何变化,我从经验中知道它会在一段时间后自行修复(尽管修复它会发生什么尚不清楚)。
我知道在最终发出 dns 请求之前 ping 将引用本地资源,但我在 /etc/hosts 中没有任何内容并且我已经刷新了本地 dns 缓存(以及服务器缓存)
谁能解释这个现象?
[carpii@imac:~]$ ping solo
ping: cannot resolve solo: Unknown host
Run Code Online (Sandbox Code Playgroud)
[carpii@imac:~]$ flushdns````
Run Code Online (Sandbox Code Playgroud)
[carpii@imac:~]$ ping creek
PING creek.carpnet (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=128 time=2.640 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=128 time=2.702 ms
Run Code Online (Sandbox Code Playgroud)
[carpii@imac:~]$ nslookup solo
Server: 192.168.1.2
Address: 192.168.1.2#53
Name: solo.carpnet
Address: …Run Code Online (Sandbox Code Playgroud) 似乎我的默认(路由器)DNS 服务器根据用于查询它的工具返回不同的结果。
使用dig:
$ dig @192.168.1.2 test.example.com
; <<>> DiG 9.16.8-Debian <<>> @192.168.1.2 test.example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58608
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;test.example.com. IN A
;; ANSWER SECTION:
test.example.com. 41 IN CNAME 123.123.12.123.
;; AUTHORITY SECTION:
. 3357 IN SOA a.root-servers.net. …Run Code Online (Sandbox Code Playgroud)有没有办法使用 DiG 或 nslookup 来确定服务器是设置为 Master 还是 Slave?如果服务器是从服务器,返回主服务器的 IP 地址?
我在配置 BIND DNS 时遇到问题,显示 server can't find XXX.in-addr.arpa: NXDOMAIN while reverse dns check!
一切都适用于正向 DNS 查找,但反向 DNS 查找失败。这是我的配置文件:
命名文件
options {
listen-on port 53 { 192.168.10.1; }; // listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion no;
allow-recursion {
localhost;
};
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key"; anaged-keys-directory "/var/named/dynamic"; };
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
}; …Run Code Online (Sandbox Code Playgroud) 
为什么是“非权威”?甚至当我寻找yahoo.com的IP与ns3.yahoo.com我得到Non-authoritative answer。
为什么雅虎服务器保留 stackoverflow 的 ip?如果不是从ns3.yahoo.com哪里获得 stackoverflow 的 ip ?
早些时候,我在将我的一个工作站(客户端)连接到我的域时遇到问题,我认为这是因为域尚未归我所有(参考:this question)。但是,由于答案,我相信还有其他事情发生?我已经在互联网上搜索过,但无法真正找出为什么我仍然遇到问题,所以我想我会要求看看这条错误消息的可能原因是什么。这是我的设置:
Server (DC)
==============================
IP: 192.168.0.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
Preferred DNS: 192.168.0.2
Workstation
==============================
IP: DHCP
Subnet Mask:
Default Gateway:
Preferred DNS: 192.168.0.2
Run Code Online (Sandbox Code Playgroud)
此外,我的本地域 (internal.domain.com) 有一个正向查找区域。这是客户端和服务器的 nslookups 的转储:
> nslookup internal.domain.com
Server: cdns02.comcast.net
Address: 2001:558:feed::2
Non-authoritative answer:
Name: internal.domain.com
Address: 50.19.***.*** (definitely not my IP address)
> nslookup -type=SRV _Kerberos._tcp.dc._msds.internal.domain.com
Server: cdns02.comcast.net
Address: 2001:558:feed::2
primary name server = ns.buydomains.com
responsible mail addr = hostmaster.buydomains.com
serial = ...
refresh = ...
retry = …Run Code Online (Sandbox Code Playgroud) domain-name-system active-directory domain-controller nslookup windows-server-2012
nslookup ×10
dig ×3
linux ×2
bind ×1
dns-lookup ×1
host ×1
internal-dns ×1
mac-osx ×1
networking ×1
ping ×1
reverse-dns ×1
ubuntu ×1