Use DDNS with own Domain and DD-WRT

Today I wanted to use a subdomain of my blog to point to my homeserver, but because my ISP gives me every 24h a new IP I need to use DDNS.
My DNS hosting provider powerdns.net does not has this function so here is my workaround:

  1. Create a account at freedns.afraid.org
  2. When registered, click on "Dynamic DNS" -> "[ add ]" and create a free DDNS domain. Make sure that the Type is "A".
  3. Login to your DNS hoster and create a new CNAME named whatever you want and point it (the alias) to your DDNS domain.
    Also make sure to set the TTL to 60 or so because the records are updated frequently and you don't want to have old cached values.
  4. Now go to your DD-WRT router -> "Setup" -> "DDNS", select "freedns.afraid.org" as DDNS Service and enter your username and password.
  5. The hostname is a bit tricky, first you need to get the access token for your DDNS domain by coping the "Direct URL" to notepad:

  6. Now you have something like "http://freedns.afraid.org/dynamic/update.php?abcdefghijklmnopqrstuwxyz1234567890=".
    The string between the question mark and the equal sign is your access token.
  7. The hostname in is now "yourddnsdomain.tdl,youraccestoken" (pay attention about the comma sign in the middle), e.g: "foo.mooo.com,abcdefghijklmnopqrstuwxyz1234567890"
  8. Click "Apply Settings" and the "DDNS Status" should show you a successful update.