Host file not being used

Am I missing something with editing the hosts file. I am editing /etc/hosts like I have hundreds of times but when visiting the domain I set, it times out. but using localhost it works. Is there something different within Garuda/Arch that I am not aware of? Thanks,

https://wiki.archlinux.org/title/Network_configuration#Set_the_hostname

1 Like
# Standard host addresses
127.0.0.1  localhost
::1        localhost ip6-localhost ip6-loopback
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters


0.0.0.0 pingu.yada

This is a sample, I don’t know how you are configuring yours .
e.g
I would have to go to pingu.yada:<port> to access my locally administered site/server.

fyi, this is how I understood you.

Sorry, I might have not gave the right information. I usually just go to the hosts file and enter

192.168.56.56 homestead.local

And it works. On Garuda this isn’t seen anywhere including in the terminal. Reboot doesn’t do anything either. Visiting 192.168.56.56 directly works.

Try to enter 192.168.56.56 homestead in /etc/hosts. Then you can ping homestead.
For me, pinging with the suffix .local like ping somepc.local is trying to resolve IP in local network like Windows would do. I’m not an expert on this, but this behavior can be related to avahi and /etc/nsswitch.conf.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.