连接被拒绝 ssh 和 dns

连接被拒绝 ssh 和 dns

我无法往返ssh于具有ip 的nslookup这台机器,而该机器具有 ip 。我不知道为什么,但我能够从我的主机上 ssh 到 。出于测试目的,在和上禁用了 Iptables 。我还可以对from执行反向查找,但无法使用主机名进行正向查找。vm1192.168.56.2ferrari172.45.20.3192.168.56.2192.168.56.2172.45.20.3172.45.20.3vm1

[root@ferrari ~]# nslookup vm1 192.168.56.2
;; connection timed out; trying next origin
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
ssh: connect to host 192.168.56.2 port 22: Connection refused

虚拟机1

[root@vm1 ~]# nslookup ferrari 172.45.20.3
Server:     172.45.20.3
Address:    172.45.20.3#53

Name:   ferrari.luxury.auto.ops
Address: 172.45.20.3

[root@vm1 ~]# nslookup 172.45.20.3
Server:     192.168.56.2
Address:    192.168.56.2#53

Non-authoritative answer:
3.20.45.172.in-addr.arpa    name = ferrari.luxury.auto.ops.

Authoritative answers can be found from:
20.45.172.in-addr.arpa  nameserver = ferrari.luxury.auto.ops.
ferrari.luxury.auto.ops internet address = 172.45.20.3

[root@vm1 ~]# host 172.45.20.3
3.20.45.172.in-addr.arpa domain name pointer ferrari.luxury.auto.ops.

相关内容