I still can’t get it to work.
Also, I noticed that it takes rather a long time for a ping to become effective. E.g.
ping hostname
Then it takes like 5-6 seconds before I get a reply - this is weird, on the Asus RT-AC68U with Merlin Firmware, it takes no time at all.
Anyway, I still can’t get it to work. I did add the line by vcunat and I still can ping the hostnames in the /etc/hosts fine - except that it takes like forever until it starts pinging them. This happens even when I ping them anew…
hyper@subi:/tmp$ cat pingTest
#!/usr/bin/env bash
remote="data"
time ping -c 1 "${remote}"
hyper@subi:/tmp$ ./pingTest
PING data (10.10.10.7) 56(84) bytes of data.
64 bytes from 10.10.10.7 (10.10.10.7): icmp_seq=1 ttl=64 time=0.264 ms
--- data ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.264/0.264/0.264/0.000 ms
real 0m5.012s
user 0m0.002s
sys 0m0.002s
however, it still won’t ping any hostnames that are not in /etc/hosts
hyper@subi:/tmp$ ssh root@data
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jun 1 13:26:12 2017 from xxx
root@data:~# ping subi
ping: unknown host subi
Also DNS resolution in general is really shitty. No matter where I go, I see the browser at least 1-2 seconds to resolve the domain name. Even when it’s a domain I’ve visited 5 minutes ago.