Skip to content

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.

License

Notifications You must be signed in to change notification settings

samankhalife/Ansible-change-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-dns-changer

This role will help you to set new DNS servers IP for your hosts.

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

- 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

- hosts: all
  become: true
  roles:
    - role: SamanKhalife.changing_dns
      vars:
        nameservers:
          - 9.9.9.9
          - 149.112.112.112

Dependencies

None

License

MIT

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy