Вы находитесь на странице: 1из 7

Course Code: CSE 324

Course title: Operating System Lab

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.

Domain Name System

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.

In Project our Domain name Smpk.com

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.

In Project our Ip Address 192.168.100.10


Project Details :
To start the project, we have to go root user. To go root User,

# 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

Now we are Restart the bind9


# /etc/init.d/bind9 restart
To check my IP
# nano /etc/network/interfaces
Now we change the lookup IP To 192.168.100.10
# nano etc/resolv.conf
Now change the IP address 192.168.100.10
Ctrl + x
Press Y to save this file
Now restart the total network
# /etc/init.d/networking restart
Now we see our IP and Domain name
# nslookup smpk.com
# nslookup 192.168.100.10
Now we check the ping of our server
# ping smpk.com
If the ping show any result then our DNS (domain Name Server) is done to
setting.
Conclusions :
Frist of all we are install Bind9 and check interfaces then IP address then create our
targeted file change and configure the file to targeted name (smpk.com) and IP
address (192.168.100.10) then change nslookup server IP to our targeted IP
192.168.100.10 then restart the total network and check the DNS and IP. Finally
check the ping of the newly Setting up the domain name. Finally setting up the
new DNS (Domain Name Sarver) which name smpk.com and it’s IP address
192.168.100.10 .

Вам также может понравиться