Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda For The Session
i. What is DNS?
ii. How Does DNS Server Work?
iii. Configuring A DNS Server In 10 Steps.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What Is DNS?
Domain Name System is responsible for translating Internet domain and hostnames to IP addresses and vice versa.
DNS Clients will be sending the requests (hostname/ IP addresses) to the DNS Server and waits for a response.
DNS Lookup Request
DNS SERVER
DNS CLIENT
DNS CLIENT
Forward Lookup Reverse Lookup
Resolves hostname/
domain name to IP
address
Resolves IP address
to hostname/ domain
name
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Working Of DNS Server
LOCAL SYSTEM RESOLVER
Built into the network
operating system
ROOT SERVER
Top of the DNS hierarchy;
13 sets of root servers around the world
TOP-LEVEL DOMAIN SERVERS
Stores information of Top Level domains
such as .COM .NET .ORG etc
AUTHORITATIVE NAME SERVERS
Knows everything about the Domain
including the IP address.
Request
Response
Stores the IP in cache
locally for later use
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
DNS Configuration
Let’s see how to configure BIND DNS Server in 10 simple steps.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
1
Install DNS with all its dependencies.
# yum install –y bind*
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
2
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Configure the /etc/sysconfig/network-scripts/ifcfg-eth0 file
DEVICE="eth0"
HWADDR="00:0C:29:0D:FB:E2"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.56.2
NETMASK=255.255.255.0
GATEWAY= 192.168.56.1
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
3
FQDN (Fully Qualified Domain Name) for the server.
# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=dns1.vardhan.com
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
4
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Add a host entry in the host file.
# vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
localhost6.localdomain6
192.168.56.2 dns1.vardhan.com
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
5
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Add server ip to the resolve.conf file.
# vim /etc/resolv.conf
search vardhan.com
nameserver 192.168.56.2
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
6
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Open /etc/named.conf file and edit the following lines:-
# vim /etc/named.conf
listen-on port 53 { localhost; }; # Replace with your IP
listen-on-v6 port 53 { ::1; }; # Comment this line
allow-query { none; }; # Replace none with any
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
7
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Open /etc/named.rfc1912.zones file and edit the lines
pointing to the zones.
zone “vardhan.com" IN
file "forward.zone";
zone "56.168.192.in-addr.arpa" IN
file "reverse.zone";
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
8
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Use /var/named/named.localhost file to create a template
for forward & reverse zones (by using ‘cp’ command).
Open the forward zone file and replace it with your
hostname.
Open the reverse zone file and replace it with your IP.
Forward & Reverse zone files should include the
following entrieslook like this:-
Forward Zone File Reverse Zone File
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
9
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service
Now set the group permissions for forward and reverse zone
files.
# chgrp named /var/named/forward.zone
# chgrp named /var/named/reverse.zone
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Configuring BIND DNS Server
Use the following command to restart the service:
# service named restart
You can use the ‘nslookup’ command to verify DNS service
# nslookup dns1.vardhan.com # Forward Lookup
# nslookup 192.168.56.2 # Reverse Lookup
Install DNS Package
Assign A Static IP Address
Assign A FQDN For Server
Configure /etc/hosts
Configure /etc/resolv.conf
Configure /etc/named.conf
Configure /etc/rfc.1912.zones
Configure forward & reverse zones
Change the group ownership
Restart DNS service10
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Hands-On
Configuring BIND DNS Server in 10 simple steps.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Session In A Minute
What Is DNS?
Configuring BIND DNS Server In 10 Steps
Working Of DNS Server
Hands-On
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
WebDriver vs. IDE vs. RC
➢ Data Warehouse is like a relational database designed for analytical needs.
➢ It functions on the basis of OLAP (Online Analytical Processing).
➢ It is a central location where consolidated data from multiple locations (databases) are stored.

Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps | Edureka

  • 1.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Agenda
  • 2.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Agenda For The Session i. What is DNS? ii. How Does DNS Server Work? iii. Configuring A DNS Server In 10 Steps.
  • 3.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. What Is DNS? Domain Name System is responsible for translating Internet domain and hostnames to IP addresses and vice versa. DNS Clients will be sending the requests (hostname/ IP addresses) to the DNS Server and waits for a response. DNS Lookup Request DNS SERVER DNS CLIENT DNS CLIENT Forward Lookup Reverse Lookup Resolves hostname/ domain name to IP address Resolves IP address to hostname/ domain name
  • 4.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Working Of DNS Server LOCAL SYSTEM RESOLVER Built into the network operating system ROOT SERVER Top of the DNS hierarchy; 13 sets of root servers around the world TOP-LEVEL DOMAIN SERVERS Stores information of Top Level domains such as .COM .NET .ORG etc AUTHORITATIVE NAME SERVERS Knows everything about the Domain including the IP address. Request Response Stores the IP in cache locally for later use
  • 5.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. DNS Configuration Let’s see how to configure BIND DNS Server in 10 simple steps.
  • 6.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 1 Install DNS with all its dependencies. # yum install –y bind* Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service
  • 7.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 2 Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service Configure the /etc/sysconfig/network-scripts/ifcfg-eth0 file DEVICE="eth0" HWADDR="00:0C:29:0D:FB:E2" NM_CONTROLLED="yes" ONBOOT="yes" BOOTPROTO="static" IPADDR=192.168.56.2 NETMASK=255.255.255.0 GATEWAY= 192.168.56.1
  • 8.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service 3 FQDN (Fully Qualified Domain Name) for the server. # vim /etc/sysconfig/network NETWORKING=yes HOSTNAME=dns1.vardhan.com
  • 9.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 4 Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service Add a host entry in the host file. # vim /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.56.2 dns1.vardhan.com
  • 10.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 5 Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service Add server ip to the resolve.conf file. # vim /etc/resolv.conf search vardhan.com nameserver 192.168.56.2
  • 11.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 6 Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service Open /etc/named.conf file and edit the following lines:- # vim /etc/named.conf listen-on port 53 { localhost; }; # Replace with your IP listen-on-v6 port 53 { ::1; }; # Comment this line allow-query { none; }; # Replace none with any
  • 12.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 7 Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service Open /etc/named.rfc1912.zones file and edit the lines pointing to the zones. zone “vardhan.com" IN file "forward.zone"; zone "56.168.192.in-addr.arpa" IN file "reverse.zone";
  • 13.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 8 Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service Use /var/named/named.localhost file to create a template for forward & reverse zones (by using ‘cp’ command). Open the forward zone file and replace it with your hostname. Open the reverse zone file and replace it with your IP. Forward & Reverse zone files should include the following entrieslook like this:- Forward Zone File Reverse Zone File
  • 14.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server 9 Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service Now set the group permissions for forward and reverse zone files. # chgrp named /var/named/forward.zone # chgrp named /var/named/reverse.zone
  • 15.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Configuring BIND DNS Server Use the following command to restart the service: # service named restart You can use the ‘nslookup’ command to verify DNS service # nslookup dns1.vardhan.com # Forward Lookup # nslookup 192.168.56.2 # Reverse Lookup Install DNS Package Assign A Static IP Address Assign A FQDN For Server Configure /etc/hosts Configure /etc/resolv.conf Configure /etc/named.conf Configure /etc/rfc.1912.zones Configure forward & reverse zones Change the group ownership Restart DNS service10
  • 16.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Hands-On Configuring BIND DNS Server in 10 simple steps.
  • 17.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Session In A Minute What Is DNS? Configuring BIND DNS Server In 10 Steps Working Of DNS Server Hands-On
  • 18.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. WebDriver vs. IDE vs. RC ➢ Data Warehouse is like a relational database designed for analytical needs. ➢ It functions on the basis of OLAP (Online Analytical Processing). ➢ It is a central location where consolidated data from multiple locations (databases) are stored.