Skip to content

Releases: markuman/hetzner_dns

1.6.0

24 Jun 06:30
Compare
Choose a tag to compare
  • Add dynamic inventory for hetzner dns
plugin: markuman.hetzner_dns.inventory
zone_name: osuv.de
filters:
  type:
    - A
    - CNAME

ansible-inventory -i osuv.hetzner_dns.yml --list

1.5.0

19 May 11:48
Compare
Choose a tag to compare

1.5.0

1.4.3

22 Apr 11:08
Compare
Choose a tag to compare
  • fix bug. purge: yes removes not all existing records

1.4.2

21 Apr 17:13
Compare
Choose a tag to compare
  • fix bug. even with purge: yes, it was always handled as purge: no and was always appending values.

1.4.0

19 Apr 19:28
Compare
Choose a tag to compare
  • add support to add/delete muliple DNS records for one Name
    • new paramter purge with alias parameter replace, overwrite and solo to be compatible with other ansible dns modules.
deleting a single A record
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 1.1.1.1
dns.osuv.de has address 8.8.4.4

To delete just 1.1.1.1 do

- name: delete single A record
  markuman.hetzner_dns.record:
    zone_name: osuv.de
    name: dns
    value: 1.1.1.1
    type: A
    state: absent

Will result in (after TTL is over).

$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 8.8.4.4
delete all records
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 1.1.1.1
dns.osuv.de has address 8.8.4.4

To delete all records from above, do

- name: delete all A records that match 'name:' value
  markuman.hetzner_dns.record:
    zone_name: osuv.de
    name: dns
    type: A
    state: absent
add a record
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8

To add a new record, do

- name: append A record
  markuman.hetzner_dns.record:
    zone_name: osuv.de
    name: dns
    value: 8.8.4.4
    type: A
    purge: no

Will result in

$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 8.8.4.4

1.3.0

14 Apr 10:18
Compare
Choose a tag to compare
  • graceful error handling and messages
  • full --diff support

1.2.0

12 Apr 18:32
Compare
Choose a tag to compare

1.1.0

21 Dec 12:02
Compare
Choose a tag to compare

Set default TTL to 300 to detect dns changes correctly. When a record was set manually without setting a TTL, the API does not response a TTL value.