I want to communicate with bitcoin DNSs to get list of bitcoin nodes.

for now I want some example and structure of messages between I and bitcoin DNS.

I found two DNS names:


and want communicate with them.

please help me

1 Answer 1


"Bitcoin DNS" is a bit of a misnomer.

It appears that hostnames such as dnsseed.bluematt.me are not actual DNS servers - you cannot communicate with them using DNS protocols. However they are valid domain names in the normal public Internet DNS system and have multiple "A" records associated with them. You can therefore query the DNS seed hostnames in the normal way (i.e. send DNS queries to your local DNS servers) to get a list of IP addresses that are presumably Bitcoin full-nodes.

You can then, I guess, communicate with any of those IP-addresses using the appropriate Bitcoin peer-to-peer protocols.

Note that some of the returned addresses are IPv6 and some IPv4.

C:\> nslookup dnsseed.bluematt.me
Server:  xxxxxxxxxxxx
Address:  192.168.1.nnn

Non-authoritative answer:
Name:    dnsseed.bluematt.me
Addresses:  2607:fea8:80a0:a1f:b1dc:86a4:62a1:ff7d

This is confirmed by Bitcoin.org's developer guide which says

When started for the first time, programs don’t know the IP addresses of any active full nodes. In order to discover some IP addresses, they query one or more DNS names (called DNS seeds) hardcoded into Bitcoin Core and BitcoinJ. The response to the lookup should include one or more DNS A records with the IP addresses of full nodes that may accept new incoming connections.

It goes on to describe the protocols that can be used to communicate with these nodes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.