Create and configure a DNS server on Linux with Bind9

Install Bind9: sudo apt-get install bind9 The Bind9 files are in /etc/bind/ cd /etc/bind/ Then, we put these 3 lines in the named.conf file: include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; In the Bind9 configuration file “named.conf.local”, declare its zones : zone "example.com" { type master; file "/etc/bind/db.example.com"; }; → The “file” line specifies that the configuration of our example.com zone will be done in the “db.example.com” file. In db.example.com, we configure our zone (the IP of my DNS server is 192....

November 17, 2022 · 2 min · Thomas