You are not logged in.
Pages: 1
I have put hostnames to my hosts file but they are not resolving for ping
# cat /etc/hosts
# Static table lookup for hostnames.
# See hosts(5) for details.
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch
meer 10.0.0.170
meer-ho 192.168.56.1# ping meer
ping: meer: Name or service not known# ping 10.0.0.170
PING 10.0.0.170 (10.0.0.170) 56(84) bytes of data.
64 bytes from 10.0.0.170: icmp_seq=1 ttl=64 time=8.33 ms# ping meer-ho
ping: meer-ho: Name or service not known# ping 192.168.56.1
PING 192.168.56.1 (192.168.56.1) 56(84) bytes of data.
64 bytes from 192.168.56.1: icmp_seq=1 ttl=64 time=0.886 msLast edited by hwallace (2021-11-01 21:39:44)
Offline
"man 5 hosts" or just look at your file.
The first three entries (not the comments…) are different from the last two, no?
Offline
"man 5 hosts" or just look at your file.
The first three entries (not the comments…) are different from the last two, no?
Oh crap.
Need a break. Not even the first time I've done that.
Thanks seth
Last edited by hwallace (2021-11-01 21:40:08)
Offline
Pages: 1