Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samankhalife/ansible-change-dns
This Ansible role provides a simple and effective way to configure DNS settings on your servers. It allows you to specify a list of nameservers and updates the DNS configuration file accordingly.
https://github.com/samankhalife/ansible-change-dns
ansible ansible-galaxy ansible-role dns resolv resolv-conf resolvconf
Last synced: about 1 month ago
JSON representation
This Ansible role provides a simple and effective way to configure DNS settings on your servers. It allows you to specify a list of nameservers and updates the DNS configuration file accordingly.
- Host: GitHub
- URL: https://github.com/samankhalife/ansible-change-dns
- Owner: SamanKhalife
- License: mit
- Created: 2024-06-20T15:47:07.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T17:52:25.000Z (5 months ago)
- Last Synced: 2024-10-13T07:05:02.993Z (about 1 month ago)
- Topics: ansible, ansible-galaxy, ansible-role, dns, resolv, resolv-conf, resolvconf
- Language: Jinja
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/SamanKhalife/changing_dns/
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# linux-dns-changer
[This role will help you to set new DNS servers IP for your hosts.](https://galaxy.ansible.com/ui/standalone/roles/SamanKhalife/changing_dns/)
Requirements
------------Ansible 2.9 or higher
Role Variables
--------------- `nameservers`: List of DNS server IP addresses. Default is `['8.8.8.8', '8.8.4.4']`.
Example Playbook
----------------Include the role in Playbook
```yml
- hosts: all
become: true
roles:
- role: SamanKhalife.changing_dns```
Note
-----
to change dns ips you can change `defaults/main.yml`or
just define it in your playbook
```yml
- hosts: all
become: true
roles:
- role: SamanKhalife.changing_dns
vars:
nameservers:
- 9.9.9.9
- 149.112.112.112```
Dependencies
------------None
License
-------MIT