lala2
A ping 8.8.8.8
pont nem teszteli a DNS feloldást csak az IP alapú hálózatot a DNS szerverig.
Így teszteled a DNS névfeloldást pingel:
ping -c 3 google.com
Tehát így kell kinéznie ha jó:
~ ❯❯❯ ping -c 3 google.com
PING google.com (172.217.18.14) 56(84) bytes of data.
64 bytes from fra15s28-in-f14.1e100.net (172.217.18.14): icmp_seq=1 ttl=56 time=23.4 ms
64 bytes from fra02s19-in-f14.1e100.net (172.217.18.14): icmp_seq=2 ttl=56 time=19.8 ms
64 bytes from fra02s19-in-f14.1e100.net (172.217.18.14): icmp_seq=3 ttl=56 time=19.9 ms
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 19.759/21.042/23.437/1.694 ms
vagy host-al:
~ ❯❯❯ host google.com
google.com has address 172.217.18.14
google.com has IPv6 address 2a00:1450:4001:80b::200e
google.com mail is handled by 10 smtp.google.com.
A dig is egy nagyszerű eszköz:
~ ❯❯❯ dig ubuntu.hu +short
92.119.121.114
Itt van egy howto a DNS beállítására:
https://linuxhint.com/set-dns-name-servers-ubuntu-linux/
A resolvectl status
megmutatja mi az aktuális DNS szerver.