私はを使用してUbuntuのFQDNを変更しようとしました sudo -i gedit /etc/hosts
そして以下のように変更します。
127.0.0.1 localhost
127.0.1.1 ubuntu.example.com
192.168.217.129 ubuntu.example.com
# 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
その後、私は試してみました:
hostname -f
それは示します:
hostname: Name or service not known
FQDNを変更する方法
ここで最も人気のある答えを試してみてください。 askubuntu.com/questions/158957/…
—
Kinnectus
下のリンクはあなたを助けるでしょう。 askubuntu.com/questions/158957/…
—
Hussain7
まあそれは知っている!
—
Kinnectus
geditでsudoを使うのではなく、nanoをお勧めしますか?とても簡単です。時折、
—
Thufir
vi
唯一の現実的な選択肢です - しかし私はそれが現実的に唯一のvisudoのためだと思います。私はgeditとsudoを混同しないでください。