![]() You may also use the same command whenever you change zone and zone files. Output: zone 0./IN: loaded serial 200101įinally, reload both the configuration file and zones. OK Validating Reverse Zone sudo named-checkzone 0. /etc/bind/r. Output: zone itzgeek.local/IN: loaded serial 200101 Validating Forward Zone sudo named-checkzone itzgeek.local /etc/bind/ sudo named-checkconfĬommand will return to the shell if there are no errors.Īlso, you can use named-checkzone to check the syntax errors in zone files. Use the named-checkconf command to check the syntax of DNS configuration files for any errors. Whenever you change any records in the lookup file, update the serial number +1 with the current number. This forward zone translates an IP address into a fully qualified domain name (FQDN). The following is for the reverse name resolution zone in the file. zone "itzgeek.local" IN // Since this is the primary DNS, it should be none. This forward zone translates a fully qualified domain name (FQDN) into an IP address. The following is the forward zone entry for the itzgeek.local domain in the file. sudo nano /etc/bind/ Creating Forward Zone Let us begin by creating DNS zones for your domain. The global configuration file for DNS server is /etc/bind/nf.įor the zone creations, use the /etc/bind/ file instead of the global configuration file. The /etc/bind/ is the configuration directory for the DNS server that holds configuration files and zone files. sudo apt install -y bind9 bind9-utils Creating DNS Zones and Zone Files Creating DNS Zones So, you can use the apt command to install the bind9 package along with other utility packages. It is available in the base OS repository. ![]() The package name of the DNS server in the Ubuntu operating system is bind9. READ: How to configure static ip address in Ubuntu 22.04/20.04 Install DNS Serverįirst, update the repository index. You may also change it as per your requirement.Īdditionally, you need to ensure sure the DNS server has a static IP address. Let us create a DNS server for the itzgeek.local domain. Here, we will see how to set up DNS server on Ubuntu 22.04 / Ubuntu 20.04. This DNS service relieves us from remembering IP addresses to reach any services over the internet or intranet. A domain Name System is an internet service used to resolve a domain name to IP Address and vice versa.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |