Dns Server: Phd. Alcides Montoya Canola, Est. Carlos Andres Ballesteros Universidad Nacional de Colombia - Sede Medellin
Dns Server: Phd. Alcides Montoya Canola, Est. Carlos Andres Ballesteros Universidad Nacional de Colombia - Sede Medellin
Abstract
This guide will develop the procedure that will allow you to practice
the knowledge acquired in the theoretical class of server management.
The topic to be developed is DNS.
1 Introduction
All computers with Internet, from your smartphone or laptop to servers with
content from massive retail websites, search and communicate with each other
through the use of numbers. These numbers are known as IP addresses. When
you open a web browser and visit a site, you do not need to remember and enter
a long number. Instead, you can enter a domain name as example.com and still
end up in the right place.
A DNS service is a globally distributed service that converts human-readable
names, such as www.example.com, into numeric IP addresses, such as 192.0.2.1,
that computers use to connect to each other. The Internet DNS system works
like a phone book where the mapping between names and numbers is managed.
DNS servers convert name requests to IP addresses and control which server an
end user will go to when entering a domain name in their web browser. These
requests are called consultations.
1
1.1 DNS Terminology
• Zone: The domain name space is divided into regions called zones. For
example, if you have example.com, you have the example section (or zone)
of the com domain.
• DNS server: The DNS server is a server that maintains the name and IP
information for a domain. You can have a primary DNS server for master
zone, a secondary server for slave zone, or a slave server without any zones
for caching.
Master zone DNS server:The master zone includes all hosts from your
network and a DNS server master zone stores up-to-date records for all
the hosts in your domain.
Slave zone DNS server: A slave zone is a copy of the master zone. The
slave zone DNS server obtains its zone data with zone transfer operations
from its master server. The slave zone DNS server responds authoritatively
for the zone as long as it has valid (not expired) zone data. If the slave
cannot obtain a new copy of the zone data, it stops responding for the
zone.
• Forwarder:Forwarders are DNS servers to which your DNS server should
send queries it cannot answer. To enable different configuration sources
in one configuration, netconfig is used (see also man 8 netconfig).
• Record:The record is information about name and IP address. Supported
records and their syntax are described in BIND documentation. Some
special records are:
-NS record: An NS record tells name servers which machines are in
charge of a given domain zone.
-MX record: The MX (mail exchange) records describe the machines to
contact for directing mail across the Internet.
-SOA record: SOA (Start of Authority) record is the first record in a
zone file. The SOA record is used when using DNS to synchronize data
between multiple computers.[1]
2 Development of Practice
The development of the practice will take place in the distribution of Open Suse
Leap 15, it is clear that this practice can be extended to other distributions
taking into account their respective changes.
2
the firewall and start the service
/etc/named.conf
/var/lib/named/example.com.zone
3
Once the server is configured, we can check that it is correctly configured using
the following command:
For check our connection to the server and verify that everything is working
we can ping as follows:
For access the http server using the domain that our server grants us, we write
the domain in the browser as shown below
3 Exercise
Configure the DNS server as shown in the development of the practice, create
a local network and test it using an http server
References
[1] DNS-server doc.opensuse.org 2019
[2] dns.bind web.mit.edu 2019