Major FRONTEND and API update

Update Record

Welcome back and lets get started.

The API got some new endpoints for your settings. Its now possible to change your username, email and reset your apikey.

How to change my username?

curl --get "https://api.tokendns.co/v1/settings" \
  -d apikey=${apikey} \
  -d action=username \
  -d value=MyNewUsername

How to change my email?

curl --get "https://api.tokendns.co/v1/settings" \
  -d apikey=${apikey} \
  -d action=email \
  -d value=mynewemail@blabladns.xyz

How to reset my apikey?

curl --get "https://api.tokendns.co/v1/settings" \
  -d apikey=${apikey} \
  -d action=apikey

All of this is possible through the frontend as well.

AND You can now reserve a subdomain through the frontend.
Just click on the “Reserve Record” button in the domain section and reserve your beloved subdomain with one click.

That means that all api functions are available through the frontend and every one can use this very easily. Very exciting and ready to implement new features!

Steffen

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!

Feature Update: Delete

Hi,

we have been busy behind the curtains and happy to present two new features for BlaBlaDNS:

– New API endpoint to delete records
– Update and delete records through the website

Finally you can delete records yourself that are not needed anymore. It is as easy as requesting the status of your records. The documentation got updated as well.

curl --get "https://api.tokendns.co/v1/delete" \
  -d apikey=${apikey} \
  -d name=${name}

For the usability of our user, its now possible to update and delete the records through the website:

feature-delupdate

Happy clicking 🙂

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