How To Install And Configure DNS Server In Linux
In this video, we show you how to install and configure DNS server in Linux using Ubuntu 20.04 LTS and Bind
We'll set up a DNS forwarder for Internet DNS resolution, as well as forward and reverse lookup zones for our local network
=====================================
Support the channel:
Buy Me a Coffee - https://buymeacoffee.com/dmckone
Donate to the channel - https://paypal.me/DavidMcKone
Become a monthly contributor on Patreon - https://www.patreon.com/dmckone
=====================================
Useful links:
https://https://ubuntu.com/download/server
=====================================
Configuration example:
1) Install Ubuntu and apply the latest patches
2) Install and configure Bind9
sudo apt install -y bind9 bind9utils bind9-doc dnsutils
3) Configure DNS Forwarding
cd /etc/bind
backup the existing file, named.conf.options e.g.
sudo cp named.conf.options named.conf.options.bak
edit named.conf.options e.g.
sudo nano named.conf.options
so it looks something like this
acl trustedclients {
localhost;
localnets;
172.16.18.0/24;
172.16.19.0/24;
};
options {
directory "/var/cache/bind";
recursion yes;
allow-query { trustedclients; };
allow-query-cache { trustedclients; };
allow-recursion { trustedclients; };
forwarders {
1.1.1.2;
1.0.0.2;
};
dnssec-validation no;
listen-on-v6 port 53 { ::1; };
listen-on port 53 { 127.0.0.1; 172.16.17.10; };
};
NOTE: DNSSec disabled as it was found to cause issues for Ubuntu 20.04
4) Define zone files
backup the existing file named.conf.local e.g.
sudo cp named.conf.local named.conf.local.bak
edit named.conf.local e.g.
sudo nano named.conf.local
so it looks something like this
zone "templab.lan" {
type master;
file "/etc/bind/db.templab.lan";
};
zone "17.16.172.in-addr.arpa" {
type master;
file "/etc/bind/db.172.16.17";
};
check the file for errors
sudo named-checkconf
5) Create a forward lookup zone
copy an existing file to one with the name used before e.g.
sudo cp db.local db.templab.lan
edit the file e.g.
sudo nano db.templab.lan
so that it looks something like this
;
; BIND data file for templab.lan zone
;
$TTL 604800
@ IN SOA ns1.templab.lan. admin.templab.lan. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.templab.lan.
ns1 IN A 172.16.17.10
dhcp1 IN A 172.16.17.12
fw IN A 172.16.18.254
check the file syntax
sudo named-checkzone templab.lan db.templab.lan
6) Create a reverse lookup zone
copy an existing file to one with the name used before e.g.
sudo cp db.127 db.172.16.17
edit the file e.g.
sudo nano db.172.16.17
so that it looks something like this
;
; BIND reverse data file for templab.lan zone
;
$TTL 604800
@ IN SOA ns1.templab.lan. admin.templab.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.templab.lan.
10 IN PTR ns1.templab.lan.
12 IN PTR dhcp1.templab.lan.
check the file syntax
sudo named-checkzone 17.16.172.in-addr.arpa db.172.16.17
7) Edit the server's DNS entry to use it's own DNS server
cd /etc/netplan
edit the yaml configuration file, e.g.
sudo nano 00-installer-config.yaml
change the IP address of the dns server entry and save the file
apply the change
sudo netplan apply
8) Start and test DNS
start bind9
sudo systemctl start bind9
check its status
sudo systemctl status bind9
test DNS is working e.g.
host dhcp1.templab.lan
host 172.16.17.10
ping www.amazon.com
Credits:
LoveLife | Instrumental Prod. Blue Mango | EQMUSEQ.COM by Don Da Vinci
https://soundcloud.com/eqmuseq/lovelife?in=eqmuseq/sets/royalty-free-music-for-youtube
How To Install And Configure DNS Server In Linux,linux dns configuration step by step,ubuntu dns configuration,ubuntu dns server,install dns ubuntu 20.04,install dns server ubuntu 20.04,how to install dns server in ubuntu,how to install bind9 on ubuntu 20.04,how to install bind9 on ubuntu,how to install dns server (bind9) on ubuntu 20.04,bind ubuntu 20.04,bind dns server ubuntu,how to install dns in linux,linux bind dns forwarders,linux bind setup
00:00 Intro
00:57 How It Works
06:31 Build VM
10:38 Install Ubuntu
19:55 Install Bind9
21:30 Configure Forwarder
32:00 Configure Zones
37:48 Configure Forward Zone
45:07 Configure Reverse Zone
49:30 Update Netplan
51:34 Start and Test DNS
Видео How To Install And Configure DNS Server In Linux канала Tech Tutorials - David McKone
We'll set up a DNS forwarder for Internet DNS resolution, as well as forward and reverse lookup zones for our local network
=====================================
Support the channel:
Buy Me a Coffee - https://buymeacoffee.com/dmckone
Donate to the channel - https://paypal.me/DavidMcKone
Become a monthly contributor on Patreon - https://www.patreon.com/dmckone
=====================================
Useful links:
https://https://ubuntu.com/download/server
=====================================
Configuration example:
1) Install Ubuntu and apply the latest patches
2) Install and configure Bind9
sudo apt install -y bind9 bind9utils bind9-doc dnsutils
3) Configure DNS Forwarding
cd /etc/bind
backup the existing file, named.conf.options e.g.
sudo cp named.conf.options named.conf.options.bak
edit named.conf.options e.g.
sudo nano named.conf.options
so it looks something like this
acl trustedclients {
localhost;
localnets;
172.16.18.0/24;
172.16.19.0/24;
};
options {
directory "/var/cache/bind";
recursion yes;
allow-query { trustedclients; };
allow-query-cache { trustedclients; };
allow-recursion { trustedclients; };
forwarders {
1.1.1.2;
1.0.0.2;
};
dnssec-validation no;
listen-on-v6 port 53 { ::1; };
listen-on port 53 { 127.0.0.1; 172.16.17.10; };
};
NOTE: DNSSec disabled as it was found to cause issues for Ubuntu 20.04
4) Define zone files
backup the existing file named.conf.local e.g.
sudo cp named.conf.local named.conf.local.bak
edit named.conf.local e.g.
sudo nano named.conf.local
so it looks something like this
zone "templab.lan" {
type master;
file "/etc/bind/db.templab.lan";
};
zone "17.16.172.in-addr.arpa" {
type master;
file "/etc/bind/db.172.16.17";
};
check the file for errors
sudo named-checkconf
5) Create a forward lookup zone
copy an existing file to one with the name used before e.g.
sudo cp db.local db.templab.lan
edit the file e.g.
sudo nano db.templab.lan
so that it looks something like this
;
; BIND data file for templab.lan zone
;
$TTL 604800
@ IN SOA ns1.templab.lan. admin.templab.lan. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.templab.lan.
ns1 IN A 172.16.17.10
dhcp1 IN A 172.16.17.12
fw IN A 172.16.18.254
check the file syntax
sudo named-checkzone templab.lan db.templab.lan
6) Create a reverse lookup zone
copy an existing file to one with the name used before e.g.
sudo cp db.127 db.172.16.17
edit the file e.g.
sudo nano db.172.16.17
so that it looks something like this
;
; BIND reverse data file for templab.lan zone
;
$TTL 604800
@ IN SOA ns1.templab.lan. admin.templab.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.templab.lan.
10 IN PTR ns1.templab.lan.
12 IN PTR dhcp1.templab.lan.
check the file syntax
sudo named-checkzone 17.16.172.in-addr.arpa db.172.16.17
7) Edit the server's DNS entry to use it's own DNS server
cd /etc/netplan
edit the yaml configuration file, e.g.
sudo nano 00-installer-config.yaml
change the IP address of the dns server entry and save the file
apply the change
sudo netplan apply
8) Start and test DNS
start bind9
sudo systemctl start bind9
check its status
sudo systemctl status bind9
test DNS is working e.g.
host dhcp1.templab.lan
host 172.16.17.10
ping www.amazon.com
Credits:
LoveLife | Instrumental Prod. Blue Mango | EQMUSEQ.COM by Don Da Vinci
https://soundcloud.com/eqmuseq/lovelife?in=eqmuseq/sets/royalty-free-music-for-youtube
How To Install And Configure DNS Server In Linux,linux dns configuration step by step,ubuntu dns configuration,ubuntu dns server,install dns ubuntu 20.04,install dns server ubuntu 20.04,how to install dns server in ubuntu,how to install bind9 on ubuntu 20.04,how to install bind9 on ubuntu,how to install dns server (bind9) on ubuntu 20.04,bind ubuntu 20.04,bind dns server ubuntu,how to install dns in linux,linux bind dns forwarders,linux bind setup
00:00 Intro
00:57 How It Works
06:31 Build VM
10:38 Install Ubuntu
19:55 Install Bind9
21:30 Configure Forwarder
32:00 Configure Zones
37:48 Configure Forward Zone
45:07 Configure Reverse Zone
49:30 Update Netplan
51:34 Start and Test DNS
Видео How To Install And Configure DNS Server In Linux канала Tech Tutorials - David McKone
Показать
Комментарии отсутствуют
Информация о видео
31 марта 2021 г. 1:34:47
01:02:09
Другие видео канала
How to Install and Configure DNS Server in UbuntuDNS in Linux for the Absolute Beginners!How To Install DHCP Server In LinuxHow to set up a DNS server on UbuntuUnderstanding DNS ZonesDDNS on a Raspberry Pi using the Cloudflare API (Dynamic DNS)Understanding How DNS Works in DepthHow a DNS Server (Domain Name System) works.BIND9 configuration on ubuntu server 20 04.Linux Administration Tutorial - Configuring A DNS Server In 10 Simple Steps | Edureka LiveHow to Change the Hostname and FQDN on UbuntuLinux Server Course - System Configuration and OperationInstallation et configuration du service DNS sous Ubuntu 21.04DNS Forward Zone Configuration For DNS Forward Lookup | Linux DNS Server | Part6Deploying BIND DNS for your Home Lab - Part 1Apache Virtual HostsPxe Boot Server Setup on RHEL 7 | Kicktstart Server on RHEL 7 | Pxe Server Configure Step by StepInstall and Configure Linux DNS Server | Linux DNS Server | Part1Ubuntu Server 20.04 Full Installation WalkthroughUse Bind9 as your DNS forwarder