How to configure DNS Server on Ubuntu Server 11.04
DNS Server is a server with domain name resolution function. In this article, we will detail the steps to install and configure DNS Server on Linux with Ubuntu Server version 11.04.
1. Install
After setting a static IP address for the server to take the DNS Server role, you perform the following commands to install the BIND9 package (using the DNS service configuration on Linux):
# sudo -i
# apt-get update
# apt-get install bind9
After the installation is successful, you get the main directory, / etc / bind . In this directory, you will configure the following files:
/etc/bind/named.conf.local
/etc/bind/db.local
DNS database file (eg /etc/bind/db.hoanghac.org )
2. Configuration
First, open the file /etc/bind/named.conf.local and add a new zone, such as hoanghac.org :
zone "hoanghac.org" {
type master;
file "/etc/bind/db.hoanghac.org";
};
Next, create the DNS database file /etc/bind/db.hoanghac.org by copying the content from the sample file /etc/bind/db.local :
# cp /etc/bind/db.local /etc/bind/db.hoanghac.org
At this point, edit the file /etc/bind/db.hoanghac.org by replacing localhost. equal to the full name of the DNS server (FQDN). Replace 127.0.0.1 with the IP address of DNS Server and root.localhost to an exact email address, but use the "." instead of the "@" symbol, you also create a record (A) corresponding to ns.hoanghac.org . The contents of the file will look like this:
;
; BIND dữ liệu tập tin cho địa chỉ loopback interface
;
$ TTL 604800
@ IN SOA ns.hoanghac.org. root.hoanghac.org. (
2 ; Serial
604800; Refresh
86400; Retry
2419200; Expire
604800); Negative Cache TTL
;
@ IN NS ns.hoanghac.org.
@ IN A 192.168.1.10
@ IN AAAA :: 1
ns IN A 192.168.1.10
Next, restart the BIND9 service for the configuration operations to take effect:
# /etc/init.d/bind9 restart
3. Check
To check the performance of the DNS Server, use the ping command as follows:
# ping ns.hoanghac.org
You should read it
- How to set up your own Git server on Linux
- 7 Enterprise Linux Server Distributions
- New points in SQL Server 2017
- 12 best Linux server operating systems
- How to Set Up an FTP Server on Ubuntu Linux
- How to set DNS nameserver in Ubuntu Server 18.04
- How to Set up an FTP Server in Ubuntu Linux
- How to Install Ubuntu Server
May be interested
- Install and configure Apache in Ubuntuin the following article, we will show you some basic steps to install and set up a web server system using apache on the ubuntu platform. in fact, this step is quite simple and easy, just use synaptic package manager, ubuntu software center to search and install apache2 module package.
- How to configure network on Ubuntu using Netplannetplan is the ubuntu network configuration tool in all recent ubuntu versions. netplan relies on a yaml-based configuration system that simplifies the configuration process.
- Instructions for configuring IPv6 on Windows Serverassigning addresses on an ipv6 network is a bit different from ipv4. ipv6 can be assigned to an interface in four ways in how to configure this ipv6.
- How to install and configure MySQL server on Pidatabases like mysql are often the primary component of dynamic web pages and one of the best ways to store data for web applications. mysql is a database management system that allows you to store and maintain large amounts of data with ease.
- How to avoid restarting the server with Ubuntu Livepatchif you administer your own server (s), sooner or later you will encounter this problem. you must restart the operating system, but the machine that is providing an important service cannot be interrupted.
- What's New in Ubuntu 21.10?version 21.10 is the latest release of ubuntu and although canonical is turning more attention to the cloud and developers, ubuntu 'impish indri' still comes with some notable changes for those users use the ubuntu desktop every day.
- Creating SSL Server 2008 Server with ISA 2006 Firewalls (Part 1)in this article we will configure the sstp vpn server and configure the isa firewall to allow the sstp vpn client to connect back to the sstp vpn server.
- Creating SSL Server 2008 Server with ISA 2006 Firewalls (Part 2)in this section, we will configure a user account that allows dialup access, and then configure this cdp to allow anonymous http connections.
- How to Set up an FTP Server in Ubuntu Linuxthis wikihow article will show you how to set up and connect to an ftp server from your ubuntu linux computer. ftp servers are useful for storing files from your computer and allowing others to browse them. in order to set up an ftp server...
- Is CentOS or Ubuntu the best web hosting server operating system?with so many available linux distributions, choosing a suitable distro for your home computer is not easy. choosing a linux distribution for the server is even more difficult.