HDNS.io
HDNS is a public DNS resolver that supports Handshake domains
HDNS provides a public DNS resolver with Handshake support available at the following IP addresses:
1
103.196.38.38
2
103.196.38.39
3
103.196.38.40
Copied!
Once you've configured HDNS (instructions) you can visit Handshake domains directly in your browser (i.e. try visiting welcome.nb/ once you've configured HDNS). You can also use HDNS programmatically in applications to query Handshake domains just like you would use a traditional DNS resolver like Cloudflare's 1.1.1.1 or Google's 8.8.8.8.
1
dig @103.196.38.38 niccarter
2
dig @103.196.38.38 welcome.nb
Copied!

DNS-over-HTTPS (DoH)

HDNS offers DNS-over-HTTPS resolvers with support for wireformat queries available at:
1
https://query.hdns.io/dns-query
Copied!
You can use curl's DoH flag to query Handshake endpoints in shell scripts easily:
1
curl --doh-url https://query.hdns.io/dns-query http://welcome.nb/
Copied!
Here's an example on how to query the DoH resolver in Node.js. Note that you must install the dohjs package first.
1
npm i dohjs
Copied!
1
const doh = require('dohjs');
2
​
3
const resolver = new doh.DohResolver('https://query.hdns.io/dns-query');
4
​
5
const getTxt = async (name) => {
6
const response = await resolver.query(name, 'TXT');
7
console.log(name)
8
if(response.answers.length > 0){
9
response.answers.forEach(ans => console.log(ans.data.toString()));
10
}else{
11
console.log('---')
12
}
13
};
14
​
15
(async() => {
16
await getTxt('f44ca263-6f26-410d-a08a-ac3bb0f7c480._auth.johnxu');
17
await getTxt('f44ca263-6f26-410d-a08a-ac3bb0f7c480._auth.qq.johnxu');
18
await getTxt('f44ca263-6f26-410d-a08a-ac3bb0f7c480._auth.vv.johnxu');
19
})()
Copied!
​
Last modified 10mo ago
Copy link