Re:DNS Toys (2022)
by Havoc on Sunday January 07, 2024 @05:40AM
(#38900097)
How does this actually work? Finding it hard to believe someone bought domains for all combinations of those unit conversions
[ Parent
| on HN ]
> How does this actually work? Finding it hard to believe someone bought domains for all combinations of those unit conversions
dns.toys runs a (custom) DNS resolver. The example dig commands are asking this resolver. They are not using your configured (public) resolver. The custom resolver can return whatever it wants depending on the request. You could also ask the resolver what the IP (A-record) of e.g. "google.com" is and it could answer with whatever it wants.
Therefore, they actually just use one domain: dns.toys.
Re:DNS Toys (2022)
by maxmouchet on Sunday January 07, 2024 @05:43AM
(#38900109)
It works by querying a specific DNS resolver (dns.toys):
dig +short TXT mumbai.weather @dns.google
# NXDOMAIN
dig +short TXT mumbai.weather @dns.toys
"Mumbai (IN)" "30.90C (87.62F)" "45.90% hu." "clearsky_day" "15:30, Sun"
"Mumbai (IN)" "28.10C (82.58F)" "56.00% hu." "fair_day" "17:30, Sun"
...