Namebase Learning Center
HomeHelp & Support
English
English
  • Introduction
  • How to
    • Use Handshake names
    • Create Handshake websites
    • Handshake DNS
    • Access Handshake names
    • Get Handshake names
    • Buy Handshake coins (HNS)
    • Transferring HNS & Names
  • Handshake
    • About Handshake
    • Name minting auction
    • HNS coin economics
  • Namebase
    • Vision and mission
    • Private naming
    • Verifying
    • Security
    • Revenue streams
  • Development
    • Developer Guides
      • Traditional website
      • Decentralized website
      • Decentralized blog
      • Decentralized login
        • Handshake-based OIDC Authentication Protocol
        • Using Handshake Login
        • Handshake Login Implementation Guide
    • Resolving Handshake
      • HNS.to
      • HNSDoH
      • Resolving Handshake locally
        • Setting up the light client
        • Setting your Operating System DNS
    • Namebase Record Assistant
Powered by GitBook
LogoLogo

Connect

  • Twitter
  • Discord
  • Github

© 2022 Namebase, Inc

On this page
  • DNS-over-HTTPS (DoH)
  • DNS-over-TLS (DoT)
  • Using HNSDoH in Node.js

Was this helpful?

Edit on GitHub
  1. Development
  2. Resolving Handshake

HNSDoH

HNSDoH is a public DNS resolver that supports Handshake domains

PreviousHNS.toNextResolving Handshake locally

Last updated 7 months ago

Was this helpful?

HNSDoH provides a public DNS resolver with Handshake support available from multiple IP addresses for stability. You can get an up to date list of IP addresses from the .

Once you've configured HNSDoH you can visit Handshake domains directly in your browser (i.e. try visiting once you've configured HNSDoH). You can also use HNSDoH 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.

dig @hnsdoh.com nathan.woodburn
dig @hnsdoh.com hnsdoh TXT

DNS-over-HTTPS (DoH)

HNSDoH offers DNS-over-HTTPS resolvers with support for wireformat queries available at:

https://hnsdoh.com/dns-query

You can use knot dns utils to query HNSDoH easily:

kdig @hnsdoh.com +https nathan.woodburn
kdig @hnsdoh.com +https hnsdoh TXT

You can use curl's DoH flag to query Handshake endpoints in shell scripts easily:

curl --doh-url https://hnsdoh.com/dns-query http://hnsdoh/

DNS-over-TLS (DoT)

HNSDoH also offers DNS-over-TLS resolvers available at: hnsdoh.com:853

kdig @hnsdoh.com +tls nathan.woodburn
kdig @hnsdoh.com +tls hnsdoh TXT

Using HNSDoH in Node.js

npm i dohjs
const doh = require('dohjs');

const resolver = new doh.DohResolver('https://hnsdoh.com/dns-query');

const getTxt = async (name) => {
	const response = await resolver.query(name, 'TXT');
	console.log(name)
	if(response.answers.length > 0){
		response.answers.forEach(ans => console.log(ans.data.toString()));
	}else{
		console.log('---')
	}
};

(async() => {
	await getTxt('hnsdoh');
	await getTxt('1.wdbrn');
	await getTxt('nathan.woodburn');
})()

Here's an example on how to query the DoH resolver in Node.js. Note that you must install the package first.

HNSDoH website
nathan.woodburn/
dohjs