thulium_drake.dns_server
Ansible Role for Setting Up a Local Nameserver
This Ansible role helps you install, configure, and update a local DNS server for your network's domains.
You can check the default settings if you want to make any changes.
This role uses PowerDNS and can also be used for Active Directory setup.
Adding DNS Records
To change the records for your DNS zone, you can use Ansible's nsupdate
module. The DNS server is set to automatically accept updates from the local machine. Here’s how you can update your zone:
- name: 'Update zone'
host: 'ns-sub.example.com'
tasks:
- nsupdate:
server: "{{ dns_server_address }}"
port: "{{ dns_server_port }}"
ttl: '60'
zone: "{{ zone }}"
record: 'host'
value: '192.168.1.1'
type: 'A'
register: 'dns_updated'
retries: 3
delay: 3
until: not dns_updated.failed
Installa
ansible-galaxy install thulium_drake.dns_server
Licenza
gpl-3.0
Download
2.6k
Proprietario