Setup Your Own DNS Server on Ubuntu Server

preview_player
Показать описание
# Show ip
#=======#==
ip a

# Set hostname
#=========#====
nano /etc/hostname
nano /etc/hosts

# Install Required package
#========#==========#=====
apt install -y bind9*

# Change directory
#=============#====
cd /etc/bind/

# Setting up bind9
#=======#======#===

forwarders {
8.8.8.8;
1.1.1.1;
};

listen-on { any; };
allow-query { any; };
allow-query-cache { any; };

# Configure zone
#=============#==

type master;
};

type master;
allow-query { any; };
};

# Forward zone configuration
#===========#============#====

# Reverse zone configuration
#=============#==========#====

# Check zones
#==========#==

# Set permission
#============#===
chown bind:bind /etc/bind/

# Restart the services
#====#===========#======
systemctl restart bind9

# Show services status
#====#===========#=====
systemctl status bind9

# Start services at boot
#====#===========#=======
systemctl enable bind9
Рекомендации по теме
Комментарии
Автор

this is trhe only tutorial that worded well for me, after 67 ttutorials . THANKS SO MUCH

herbervonsant
Автор

Just so you know, you're gonna get me through an exam with this, thank you

parasitone
Автор

why was your reverse lookup zone 20.50.20 and not 50.20.172

shahinshahab
Автор

I am getting this error when i am trying to enable this service "Failed to enable unit: Refusing to operate on alias name or linked unit file: bind9.service"

mohitpanwar
Автор

i want to block some domains how to do pls 🫢

kimtv
welcome to shbcf.ru