# salt.modules.ddns

Support for RFC 2136 dynamic DNS updates. Requires dnspython module.

`salt.modules.ddns.` `add_host`(zone, name, ttl, ip, nameserver='127.0.0.1', replace=True)

  Add, replace, or update the A and PTR (reverse) records for a host.

  CLI Example:

      salt ns1 ddns.add_host example.com host1 60 10.1.1.1

`salt.modules.ddns.` `delete`(zone, name, rdtype=None, data=None, nameserver='127.0.0.1')

  Delete a DNS record.

  CLI Example:

      salt ns1 ddns.delete example.com host1 A

`salt.modules.ddns.` `delete_host`(zone, name, nameserver='127.0.0.1')

  Delete the forward and reverse records for a host.

  Returns true if any records are deleted.

  CLI Example:

      salt ns1 ddns.delete_host example.com host1

`salt.modules.ddns.` `update`(zone, name, ttl, rdtype, data, nameserver='127.0.0.1', replace=False)

  Add, replace, or update a DNS record. nameserver must be an IP address and the minion running this module must have update privileges on that server. If replace is true, first deletes all records for this name and type.

  CLI Example:

      salt ns1 ddns.update example.com host1 60 A 10.0.0.1

Current Salt release: 0.17.1

#### Previous topic

salt.modules.data

#### Next topic

salt.modules.debconfmod

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd