旧主机名在反向查找中被解析

时间:2019-03-03 10:58:16

标签: dns ubuntu-18.04 hostname ubuntu-server reverse-lookup

我是ubuntu服务器的新手。在我的vps中,我已将主机名配置为example.com,现在我想将其更改为example.net,因为我对.com注册器存在一些问题。

因此,我在ubuntu 18.04上使用hostnamectl命令更改了主机名。 我检查了/ etc / hostname文件,并更新了/ etc / hosts以使用新的主机名。

例如: 旧主机名-thor.example.com
新主机名-thor.example.net

当我从配置主机名的vps ping到example.com时。响应为:

PING example.net (X.X.X.X) 56(84) bytes of data.
64 bytes from thor.example.net (X.X.X.X): icmp_seq=1 ttl=64 time=0.021 ms
64 bytes from thor.example.net (X.X.X.X): icmp_seq=2 ttl=64 time=0.044 ms

但是,从本地计算机上进行反向查找或ping可以从.com回复

PING example.net (X.X.X.X) 56(84) bytes of data.
64 bytes from thor.example.com (X.X.X.X): icmp_seq=1 ttl=50 time=271 ms
64 bytes from thor.example.com (X.X.X.X): icmp_seq=2 ttl=50 time=329 ms

0 个答案:

没有答案
相关问题