Article 5P3RE [SOLVED] Ubuntu hostname -i output

[SOLVED] Ubuntu hostname -i output

by
stampede
from LinuxQuestions.org on (#5P3RE)
I'm working on some K8's training, and I built a pair of Ubuntu VM's in VMware. KDE Neon to be specific.

I noticed this interesting anomoly.

Master:
pch@master:~$ hostname -i
127.0.1.1
Worker:
pch@worker:~$ hostname -i
192.168.0.157 172.17.0.1 fe80::20c:29ff:feb1:9de8
I even set the IP static in the GUI and disabled IPV6 rebooted and checked again. Same output... Not sure what's setting the info in hostname -i.

How can I make sure the IP is properly set so that hostname -i sees the real thing?latest?d=yIl2AUoC8zA latest?i=9f5hyGvYhcI:G1RfuCJCv4g:F7zBnMy latest?i=9f5hyGvYhcI:G1RfuCJCv4g:V_sGLiP latest?d=qj6IDK7rITs latest?i=9f5hyGvYhcI:G1RfuCJCv4g:gIN9vFw9f5hyGvYhcI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments