The TokenDNS NodeJS module is ready

Integrating the TokenDNS API into your application should be as easy as possible. We created a small and fast nodejs plugin that you can use to get started. There is nothing more to say than, check our docs, grab the module from github and look at this example:

var TokenDNS = require('index.js')
var apiKey = 'YOURAPIKEY';

var tokenDnsClient = new TokenDNS(apiKey)

tokenDnsClient.registerDomain({
    apikey: apiKey,
    action: 'add',
    domain: 'example.com',
    method: 'email',
    email: 'webmaster@example.com',
    billing: 'yearly',
    },function(err, res) {
        console.log(res.status);
});

Have fun and let us know when you run in a bug 🙂

What’s my IP?

mailbox

Welcome back,

we have been writing about this earlier, but wanted to bring all the tools you need to use this free and secure dynamic dns alternative.
It’s possible to get your public ip within the BlaBlaDNS ecosystem in a secure way. The address is https://ip.tokendns.co and can only be reached through https.

When you update your records you can now use this little service. Example?

curl --get "https://api.tokendns.co/v1/update" \
  -d apikey=${apikey} \
  -d name=${name} \
  -d content=$(curl -4 https://ip.tokendns.co)

Be safe!

What is my IP address?

door

Whenever you want to use TokenDNS you need to know your public ip address. There are many ways to find out what your ip is, but also some wrong ways.

Lets say you want to access you server at home and of course you use only internal ips in your network. That means the local ip cannot be accessed from the internet. We need to know our public ip. For that we can use different ways:

How to get my IPv4 address:

# curl -4 https://ip.tokendns.co
# curl -4 ifconfig.co
# curl -4 ifcfg.me
# curl -4 http://canhazip.com
# curl -4 http://whatismyip.akamai.com
# curl -4 https://ifcfg.me # Valid SSL
# dig +short myip.opendns.com @resolver1.opendns.com 
# nc ifcfg.me 23 | grep IPv4 | cut -d' ' -f4 
# telnet 4.ifcfg.me 2>&1 | grep IPv4 | cut -d' ' -f4
# echo close | ftp 4.ifcfg.me | awk '{print $4; exit}'

How to get my IPv6 address:

# curl -6 https://ip.tokendns.co
# curl -6 ifconfig.co
# curl -6 ifcfg.me
# curl -6 http://canhazip.com
# curl -6 http://whatismyip.akamai.com
# curl -6 https://ifcfg.me # Valid SSL
# nc ifcfg.me 23 | grep IPv6 | cut -d' ' -f4
# telnet 6.ifcfg.me 2>&1 | grep IPv6 | cut -d' ' -f4
# echo close | ftp 6.ifcfg.me | awk '{print $4; exit}'

The easiest way to utilize them is to add them to your cronjobs. For example:

curl --get "https://api.tokendns.co/v1/update" \
  -d apikey=${apikey} \
  -d name=${name} \
  -d content=$(curl -4 https://ip.tokendns.co)

There are plenty of other service providers who allow you to get your public ip address. May be in the future you can use TokenDNS for that too It is now 🙂

Steffen