+
Skip to content

solairen/bind9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About


This ansible script installs Bind9.

Docker image is available on DockerHub.

Supported OS:

  • Debian 12
  • Ubuntu 22.04
  • Raspberry Pi 4/5

Ubuntu


In Ubuntu OS DNSStubListener should be set to no:

vim /etc/systemd/resolved.conf

uncomment and change to no:

DNSStubListener=no

Save and restart systemd-resolved.service

sudo restart systemd-resolved.service

Configuration


Open configuration.yml that is located in group_vars/bind9 and set proper values:

addresses:
  first: 127.0.0.0
  second: 127.0.1.0
dns1: 9.9.9.9
dns2: 149.112.112.112

Here:

addresses:
  first: 127.0.1.0
  second: 127.0.2.0

there is an option to add more addresses that will be added to acl configuration in named.conf.options e.g:

addresses:
  first: 127.0.0.0
  second: 127.0.1.0
  third: 127.0.2.0
  fourth: 127.0.3.0

and the output for named.conf.options will be:

acl internal {
    127.0.0.0/24;
    127.0.1.0/24;
    127.0.2.0/24;
    127.0.3.0/24;
};

About

Install Bind9 DNS server using Ansible

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载