Olej писал(а): ↑31 май 2023, 15:33
Запуск резолвера:
А выглядит это всё (как я понял) примерно так:
Имеем
имя, например разрешаемое через
альтернативный DNS Alfis
Код: Выделить всё
olej@R420:~$ host linux-ru.ygg 127.0.0.4
Using domain server:
Name: 127.0.0.4
Address: 127.0.0.4#53
Aliases:
linux-ru.ygg has IPv6 address 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771
Это реальный хост, в чём убеждаемся:
Код: Выделить всё
olej@R420:~$ ping -c3 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771
PING 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771(221:58c9:9a6:99be:f3d:c1ac:2b5b:9771) 56 data bytes
64 bytes from 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771: icmp_seq=1 ttl=64 time=118 ms
64 bytes from 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771: icmp_seq=2 ttl=64 time=117 ms
64 bytes from 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771: icmp_seq=3 ttl=64 time=120 ms
--- 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 117.310/118.459/119.806/1.028 ms
Для этого IPv6 meshname-имя выглядит так:
Код: Выделить всё
olej@R420:~/2023/alt.DNS/meshname/meshname$ ./meshnamed -getname 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771
aiqvrsiju2m34dz5ygwcww4xoe
Код: Выделить всё
olej@R420:~/2023/alt.DNS/meshname/meshname$ ./meshnamed -getip aiqvrsiju2m34dz5ygwcww4xoe
221:58c9:9a6:99be:f3d:c1ac:2b5b:9771
И если такое имя подсунуть резолверу meshnamed, то он из него вытянет адрес:
Код: Выделить всё
olej@R420:~/2023/alt.DNS/meshname/meshname$ ./meshnamed
2023/05/31 16:03:13 Listening on: [::1]:53535
...
Код: Выделить всё
olej@R420:~$ host -6 -p53535 aiqvrsiju2m34dz5ygwcww4xoe.meship ::1
Using domain server:
Name: ::1
Address: ::1#53535
Aliases:
aiqvrsiju2m34dz5ygwcww4xoe.meship has IPv6 address 221:58c9:9a6:99be:f3d:c1ac:2b5b:9771