Professional Documents
Culture Documents
About Us Advertising on Unixmen Become a Contributor Unixmen collaborated with Unixstickers Contact Us
OPENSOURCE UNIX ASK/UNIXMEN
Home Frequently Asked Questions configure BIND Server with Ubuntu 16.04
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
16.04
By Rajneesh Upadhyay
One Ad. All Devices.
tweet Show Your Ad On Desktops,
Tablets, And Mobile Phones
With Google AdWords.
Google AdWords
Share
Introduction
All of Linux users are already families with BIND service, already
a lots of articles has been published with recent Ubuntu Linux
versions , you can go through all of them, BIND is a dns service
which assign a unique name to your IP Address which is termed
a domain name, so that it becomes easy to resolve some ip
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
address over the internet or even on a local area network. A
network con possess only one specific domain name. When
some IP Domain Name is resolved to its IP Address then it is
know as forward zone and when a IP address is back to its
name it is known as reverse zone. Only to purpose of dns is to
simply network queries, imagine a world where all websites are
knows with their ip addresses only, there will be a big chaos as
human memory can no memories so many IP Address digits,
but it is always easy to remember some name that is why we
assign name to IP Address on any network.
Installation
Requisites
IP Address: 192.51.12.250
Follow @unixmen
update system
# apt-get update
# ip a
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Contact UnixMen
# cd /etc/bind && ls
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Open /etc/bind/named.conf.options, find forwards and put dns
address of your ISP
Sample output
forwarders {
8.8.8.8;
};
# dig google.com
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Let us repeat same dig command again and see the difference
in output
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Query time is zero, you can see that how quick caching only
bind service can resolve dns server.
Let us configure BIND master server now, first of all make some
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
settings in /etc/resolv.conf. Open file and type:
# vim /etc/resolv.conf
Sample:
search rajneesh.com
nameserver 192.51.12.250
# cd /etc/bind
Open named.conf.local
# vim named.conf.local
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
// Consider adding the 1918 zones here, if they are
not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "rajneesh.com" {
type master;
file "/etc/bind/db.rajneesh.com";
};
zone "12.51.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Configure Forward zone
# cp db.local db.rajneesh.conf
# vim /etc/bind/db.rajneesh.com
Configure file
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA www.rajneesh.com. admin.rajneesh.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
;
@ IN NS www.rajneesh.com.
@ IN A 192.51.12.250
www IN A 192.51.12.250
# /etc/init.d/bind9 restart
# /etc/init.d/bind9 status
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Thing looks good at this stage.
Sample output
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;rajneesh.com. IN A
;; ANSWER SECTION:
rajneesh.com. 604800 IN A 192.51.12.250
;; AUTHORITY SECTION:
rajneesh.com. 604800 IN NS www.rajneesh.com.
;; ADDITIONAL SECTION:
www.rajneesh.com. 604800 IN A 192.51.12.250
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
We have a green signal in ANSWER section. so let us move to
configure reverse zone.
# cp db.127 db.192
Edit file
Restart server
# /etc/init.d/bind9 restart
#nslookup 192.51.12.250
Sampe output
Server: 192.51.12.250
Address: 192.51.12.250#53
250.12.51.192.in-addr.arpa name = rajneesh.com.
Things are working good. This is all for now, Have fun!
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
tweet
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Previous article Next article
NO COMMENTS
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
EDITOR PICKS POPULAR POSTS POPULAR CATEGORY
News 429
How to prevent SSH Ifconfig Command Not
from disconnecting Found In CentOS 7 Opensource 321
sessions Minimal Installation
Linux tutorials A... Frequently Asked Questions 313
CentOS
Unix 147
APT: Rebuilding Releases 139
Package in Debian How to install
Linux tutorials Univention Corporate CentOS 119
Server
Linux tutorials
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
ABOUT US FOLLOW US
Privacy Policy
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com