Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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