# salt.states.ddns

## Dynamic DNS updates.

Ensure a DNS record is present or absent utilizing RFC 2136 type dynamic updates. Requires dnspython module.

    webserver:
      ddns.present:
        - zone: example.com
        - ttl: 60

`salt.states.ddns.` `absent`(name, zone, data=None, rdtype=None)

  Ensures that the named DNS record is absent.

  name
    The host portion of the DNS record, e.g., 'webserver'
  zone
    The zone to check
  data
    Data for the DNS record. E.g., the IP addres for an A record. If omitted, all records matching name (and rdtype, if provided) will be purged.
  rdtype
    DNS resource type. If omitted, all types will be purged.

`salt.states.ddns.` `present`(name, zone, ttl, data, rdtype='A')

  Ensures that the named DNS record is present with the given ttl.

  name
    The host portion of the DNS record, e.g., 'webserver'
  zone
    The zone to check/update
  ttl
    TTL for the record
  data
    Data for the DNS record. E.g., the IP addres for an A record.
  rdtype
    DNS resource type. Default 'A'.

Current Salt release: 0.17.1

### Table Of Contents

- salt.states.ddns
  - Dynamic DNS updates.

#### Previous topic

salt.states.cron

#### Next topic

salt.states.debconfmod

### Quick search

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

### Upcoming SaltStack Events

My conferences on Lanyrd