Hosting hosts file need help.
by bscho from LinuxQuestions.org on (#50KBZ)
Hosting my site on Fedora 31. I can see the site on localhost and did see the site before on 192.168.1.5 but now that has disappeared and i can only see it on localhost. The hosts file only showed localhost at 127.0.0.1
I have tried to put 192.168.1.5 in the hosts file but it still does not work.
This is my hosts file
192.168.1.10 localhost
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain
192.168.1.5 localhost
I tried 192.168.1.10 and this does not work either.
Why did 192.168.1.5 disappear in the first place?
Have I not put the correct entry into the hosts file?
How can I fix this please?


I have tried to put 192.168.1.5 in the hosts file but it still does not work.
This is my hosts file
192.168.1.10 localhost
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain
192.168.1.5 localhost
I tried 192.168.1.10 and this does not work either.
Why did 192.168.1.5 disappear in the first place?
Have I not put the correct entry into the hosts file?
How can I fix this please?