User Tools

Site Tools


DynDNS (RFC2136)

Enable DynDNS

To enable dyndns, pdns.conf have to be edited.


Generate a TSIG Key

Use pdnsutil to generate a new key. You have to give it a name (eg. foobar) and choose an algorithm (eg. hmac-md5).

# pdnsutil generate-tsig-key foobar hmac-md5
Create new TSIG key foobar hmac-md5 M4JBOHlvnUAdhGsTsGKATStBQSbWlf4dXqQe1gIY/0g=

To check if it was created you can use the list-tsig-keys command of pdnsutil.

# pdnsutil list-tsig-keys
foobar. hmac-md5. M4JBOHlvnUAdhGsTsGKATStBQSbWlf4dXqQe1gIY/0g=

Import a TSIG Key

If you already have a TSIG generated, for example if you migrate from bind, you can import it.

pdnsutil import-tsig-key foobar hmac-md5 Y8bdON5YTiwCWF7YHSNkL6x=

Allow TSIG Update on a Zone

Allow the TSIG key foobar to update

pdnsutil add-meta TSIG-ALLOW-DNSUPDATE foobar

Before the TSIG, the source ip address will be checked. Because a TSIG key is required, all ip addresses can be allowed.

pdnsutil add-meta ALLOW-DNSUPDATE-FROM
pdnsutil add-meta ALLOW-DNSUPDATE-FROM ::/0

Allow Update on a Zone for a Network Range

Allow the clients from and 2001:db8::/32 to update the records in the domain

pdnsutil add-meta ALLOW-DNSUPDATE-FROM
pdnsutil add-meta ALLOW-DNSUPDATE-FROM 2001:db8::/32

This can be combined with TSIG, then both requirements have to match (ip address and key).

Client Configuration


apps/powerdns/dyndns.txt · Last modified: 2020-09-29 11:44 by Manuel Frei