Академический Документы
Профессиональный Документы
Культура Документы
Project Report
Setting up a DNS (Domain Name System) Server
Submitted To:
G.m. Rasiqul Islam Rasiq
Lecturer
Department Of CSE
Daffodil International University
Submitted By:
Pias Kumar (171-15-9007)
Mizanur Rahman (171-15-8881)
Jubaida Rahman (171-15-8846)
Department Of CSE
Daffodil International University
Introduction :
All computers on the Internet, from our smart phone or laptop to the servers that
serve content for massive retail websites, find and communicate with one another
by using numbers. These numbers are known as IP addresses. When you open a
web browser and go to a website, we don't have to remember and enter a long
number. We can enter a domain name like google.com and still end up in the right
place.
The domain name system, more commonly known as "DNS" is the networking
system in place that allows us to resolve human-friendly names to unique
addresses.
Domain Name
A domain name is the human-friendly name that we are used to associating with an
internet resource. For instance, "google.com" is a domain name. Some people will
say that the "google" portion is the domain, but we can generally refer to the
combined form as the domain name.
IP Address
An IP address is what we call a network addressable location. Each IP address
must be unique within its network. When we are talking about websites, this
network is the entire internet.
# sudo su
Password :******
Now install Bind9
# Apt-get install bind9
After install Bind9 check the interface configer
# ifconfig
Our Interface name enp0s3.Noe we check our interfaces
# ifconfig enp0s3
WE check the IP address, now we assign a new static IP address
# nano/ etc/network/interfaces
Now Edit the file and assing the IP address
auto ens33
iface ens 33 inet static
address 192.168.100.10
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
gateway 192.168.100.1
Ctrl + x
Press Y to save this file
Now we check Etc/bind to check db.local and db,127 and copy a those file and
mane change to our targeted name.
# cd /etc/bind
# cp db.local db.smpk.com
# cp db.127 db.192
Now we have to edit the local file
# nano named.conf.local
zone "smpk.com" {
type master;
file "/etc/bind/db.smpk.com";
};
zone "100.168.192. in-addr.arpa" {
type master;
file "/etc/bind/db. 192";
};
Ctrl + x
Press Y to save this file
Now we are Edit The db.smpk.com and db.192 file and configure this file
# nano db.smpk.com
;
; BIND data file for local loopback interface
;
STTL 604800
@ IN SOA ns.smpk.com. root.smpk.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.smpk.com.
@ IN А 192.168.100.10
NS IN A 192.168.100.10
IN MX 10 mail.smpk.com ns ns
www IN CNAME ns
mail IN CNAME ns
Ctrl + x
Press Y to save this file
# nano db.192
;
; BIND data file for local loopback interface
;
STTL 604800
@ IN SOA ns.smpk.com. root.smpk.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.smpk.com.
10 IN PTR na.smpk.com
Ctrl + x
Press Y to save this file