
我在工作中一直嘗試將 Ubuntu 18.04 系統連接到 Windows 網路。
安裝後,我嘗試從 Windows 計算機 ping Ubuntu 計算機,反之亦然。
Windows 機器被發現且 ping 正常。
然而,當我嘗試 ping Ubuntu 電腦時,FQDN 方法不起作用。
我可以透過 IP 和主機名稱 ping Ubuntu 系統。
我的/etc/主機內容如下:
127.0.0.1 localhost
127.0.1.1 pagemattermost.hevs.ch s4bsu-server
153.109.5.99 pagemattermost.hevs.ch s4bsu-server
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
我的 Ubuntu 機器上各種指令的輸出:
hostname: s4bsu-server
hostname -d:hevs.ch
hostname -f:pagemattermost.hevs.ch
我的如果配置輸出:
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 153.109.5.99 netmask 255.255.255.0 broadcast 153.109.5.255
inet6 fe80::9354:37ce:e64c:aa94 prefixlen 64 scopeid 0x20<link>
ether 98:90:96:c6:ba:18 txqueuelen 1000 (Ethernet)
RX packets 28555 bytes 14650682 (14.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17685 bytes 2766305 (2.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7c00000-f7c20000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 9439 bytes 1727354 (1.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9439 bytes 1727354 (1.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
這Windows系統IP配置:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : hevs.ch
Link-local IPv6 Address . . . . . : fe80::a483:ab48:1ab0:ce8e%11
IPv4 Address. . . . . . . . . . . : 153.109.5.98
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 153.109.5.1
我的/etc/resolv.conf輸出:
# Generated by NetworkManager
search hevs.ch
nameserver 153.109.6.36
nameserver 153.109.64.6
我的nslookup s4bsu 伺服器輸出:
;; Got SERVFAIL reply from 153.109.6.36, trying next server
Server: 153.109.64.6
Address: 153.109.64.6#53
** server can't find s4su-server: SERVFAIL
當我 ping s4bsu-server 和/或 IP 時,我得到:
Pinging 153.109.5.99 with 32 bytes of data:
Reply from 153.109.5.99: bytes=32 time=2ms TTL=64
Reply from 153.109.5.99: bytes=32 time<1ms TTL=64
Reply from 153.109.5.99: bytes=32 time=1ms TTL=64
Reply from 153.109.5.99: bytes=32 time=1ms TTL=64
Ping statistics for 153.109.5.99:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 1ms
我不知道為什麼無法 ping 和/或呼叫 FQDN 名稱。
我還可以使用 IP 和主機名稱從 Windows 系統 ssh 到 ubuntu 機器。
也許,我沒有正確理解 FQDN,或者這只是我所做的一些愚蠢的事情,或者 18.04 中 DNS 的一些愚蠢問題,但這已經是漫長的一天了,我似乎無法弄清楚。我在以前的 Gnome LTS 版本中從未遇到過這個問題。
非常感謝所有幫助和建議。
我可以嘗試向您提供所有其他資訊來幫助解決此問題。