Learn how to install and configure a DNS server on both Windows and Linux systems in this step-by-step tutorial. We cover everything from initial setup to testing and verification. Whether you're working with Windows Server or a Linux distribution like Ubuntu or CentOS, this guide will help you get your DNS infrastructure up and running smoothly.
Applies to:
✅ Windows Server 2025, ✅ Windows Server 2022, ✅ Windows Server 2019, ✅ Windows Server 2016, ✅ Debian/Ubuntu Linux (and clones), ✅ Centos/Red hat Linux (and clones), ✅ SUSE Linux
Chapters:
0:00 Introduction
1:16 Installation: Windows
1:43 Windows GUI
3:23 Windows PowerShell
4:30 Windows Test from Client System
4:44 Windows DNS File Location
5:37 Installation: Linux (Debian/Ubuntu)
6:38 Ubuntu Test from Client System
6:56 Ubuntu Install Firewall
8:45: Ubuntu DNS File Location
9:06 Installation: Linux (Red Hat/CentOS)
11:21 CentOS Test from Client System
11:40 CentOS DNS File Location
12:21 Installation: Linux (SUSE/OpenSUSE)
14:03 OpenSUSE Test from Client System
14:16 OpenSUSE DNS File Location
14:40 Up Next: DNS Zones
15:01 Thank you for watching
15:24 Links
Glossary:
AD = Active Directory
APT = Advanced Package Tool
BIND = Berkley Internet Naming Daemon
CNAME = Canonical Name (alias)
DNF = Dandified YUM
DNS = Domain Name System
DNSSEC = Domain Name System Security Extensions
IP = Internet Protocol
IPv4 = Internet Protocol version 4
IPv6 = Internet Protocol version 6
MX = Mail eXchangers
NS = Name Server
PTR = Pointer Records
RP = Responsible Person
SOA = Start Of Authority
SUDO = SuperUser DO
TCP = Transmission Control Protocol
TTL = Time To Live
UDP = User Datagram Protocol
GitHub:
https://github.com/DariensTips
Commands:
WINDOWS POWERSHELL
Install-WindowsFeature -Name dns -IncludeManagementTools
$Forwarders="8.8.8.8","8.8.4.4","9.9.9.9"
Set-DnsServerForwarder -IPAddress $Forwarders
Get-DnsServer
Get-DnsServerSetting
Get-DnsServerForwarde
Test-DnsServer -IPAddress [ipaddress]
Get-NetFirewallRule -DisplayGroup "DNS Service" -Direction Inbound
ipconfig /all
Get-DnsClientServerAddress
Resolve-DnsName www.microsoft.com -Server [ipaddress] -DnsOnly
------------------
UBUNTU BASH
apt list bind*
sudo apt -y install bind9
systemctl status bind9
cd /etc/bind
sudo nano -l named.conf.options
sudo systemctl restart bind9
sudo apt install firewalld firewall-config
systemctl status firewalld
sudo firewall-cmd --permanent --add-service=dns
sudo firewall-cmd –reload
systemctl status firewalld
------------------
RED HAT BASH
dnf list bind*
sudo dnf install bind
systemctl status bind
systemctl status named
cd /etc
sudo cp named.conf named.conf.bkup-20250601
sudo nano -l named.conf
sudo named-checkconf
systemctl status firewalld
sudo firewall-cmd --permanent --add-service=dns
sudo firewall-cmd –reload
sudo dnf install firewall-config
sudo systemctl enable --now named
systemctl status named
------------------
SUSE BASH
sudo zypper search bind*
sudo zypper install bind
cd /etc
sudo cp named.conf named.conf.bkup-20250601
sudo nano -l named.conf
sudo named-checkconf
systemctl status firewalld
sudo firewall-cmd --permanent --add-service=dns
sudo firewall-cmd –reload
sudo zypper install firewall-config
sudo systemctl enable --now named
systemctl status named
------------------
Links:
https://docs.redhat.com/en/documentat...
https://documentation.ubuntu.com/serv...
https://downloads.isc.org/isc/bind9/9...
https://en.wikipedia.org/wiki/Domain_...
https://learn.microsoft.com/en-us/win...
https://learn.microsoft.com/en-us/win...
https://learn.microsoft.com/en-us/win...
https://philchen.com/2007/04/04/confi...
https://www.digitalocean.com/communit...
https://www.isc.org/bind/
Hashtags:
#DNSServer #WindowsServer #LinuxServer #ServerSetup #Networking #ITTutorial #SysAdmin #NetworkInfrastructure