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
- data: 111.222.333.444
- nameserver: 123.234.345.456
- keyfile: /srv/salt/tsig_key.txt
salt.states.ddns.
absent
(name, zone, data=None, rdtype=None, **kwargs)¶Ensures that the named DNS record is absent.
**kwargs
salt.states.ddns.
present
(name, zone, ttl, data, rdtype='A', **kwargs)¶Ensures that the named DNS record is present with the given ttl.
**kwargs