Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to self-host a dynamic DNS service? I really like the flexibility of DynDNS et al, but I'd like to host my own dynamic DNS service so I can have better control and the ability to send my owned domains to the nameserver without having to pay a fee. Are FOSS implementations of dynamic DNS available, or is there a way to do this in BIND?

share|improve this question
up vote 6 down vote accepted

bind v9 has support for dynamic updates:

zone "example.net" {
    type master;
    file "zones/example.net.db";

    update-policy local;

    auto-dnssec allow;
    key-directory "keys/example.net";
};

  • You can use nsupdate to manage the zone locally,

  • or call nsupdate from a CGI script (accessed by the client PC, like DynDNS updater),

  • or use nsupdate remotely using TSIG.

    zone "example.net" {
        update-policy {
            grant <keyname> name <hostname> A AAAA TXT;
            //grant * self * A AAAA TXT;
        };
    };
    
    key <keyname> {
        algorithm HMAC-MD5;
        secret "<keydata>";
    };
    

    (docs: update-policy)

  • Windows has native support DDNS using GSS-TSIG, which requires a working Kerberos setup (not necessarily Active Directory).

  • In a local network, updates can be performed by either the DHCP client (ISC dhclient) or server (ISC dhcpd). This is also described in the Secure dynamic DNS page.

  • bind can automatically sign dynamic zones.

share|improve this answer
1  
Thanks, you are metal. \m/ – Naftuli Tzvi Kay Feb 26 '11 at 0:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .