lennertmertens.dns
Ansible Role DNS
This Ansible role helps set up DNS servers on network interfaces.
Requirements
No special requirements.
Role Variables
Here's a table of the role variables you can use:
Variable | Default | Description |
---|---|---|
dns_intname |
eth0 | The name of the interface for the domain |
dns_nameservers |
Nameservers to add to /etc/resolv.conf |
|
dns_search |
avalon.lan | The search domain to configure |
Dependencies
There are no dependencies.
Examples
- Specify the interface name where the options apply. This is important as changes are made in
/etc/sysconfig/network-scripts/ifcfg-eth0
to keep them after a reboot:
dns_intname: eth1
- List your nameservers like this, making sure to include
DNS1=
,DNS2=
, etc.:
dns_nameservers:
- "DNS1=192.168.1.10"
- "DNS2=10.0.2.3"
- Define the domain name for DNS lookups:
dns_search: local.domain
Contributing
We welcome your feedback! Please post issues, feature requests, or ideas in the Issues section.
Pull requests are also greatly appreciated. To submit a PR, first fork this Github project, create a new branch for your changes, and push it to your fork. Then you can easily create a PR from that branch. Remember to add your name to the contributor list below!
License
This project is under the 2-clause BSD license, see LICENSE.md.
Contributors
- Lennert Mertens (maintainer)
- Bert Van Vreckem (maintainer of Ansible Skeleton)
Informazioni sul progetto
Role for configuring DNS servers in /etc/resolv.conf
Installa
ansible-galaxy install lennertmertens.dns
Licenza
bsd-2-clause
Download
142
Proprietario
versaminds | CodeCloud