SlideShare una empresa de Scribd logo
1 de 3
 
	
  
	
  
	
  
	
  
	
  
	
  
	
  
	
  
	
  
	
  
	
  
	
  
	
  
	
  
Install	
  BIND9	
  on	
  Ubuntu	
  12.04
We’re going to setup DNS server using ISC BIND (version 9) on Ubuntu
Server 12.04 LTS.
First, update your OS:
sudo apt-get update && sudo apt-get upgrade
After that, install BIND9:
sudo apt-get install bind9
Now that BIND is installed, we’re going to edit /etc/bind/named.conf.options
and configure BIND to cache requests and forward unresolved queries.
sudo nano /etc/bind/named.conf.options
Remove the comments from the ‘forwarders’ section and add your external
DNS servers. In the below example I’m using Google’s public DNS servers
(8.8.8.8 and 8.8.4.4):
forwarders {
8.8.8.8;
8.8.4.4;
};
So now the next thing that we need to do is to create the actual zone file for
our domain (of which in this example is ‘yoursite.db‘):
sudo nano /etc/bind/named.conf.local
* Replace “yoursite.com” with your domain name.
Add a zone for our local domain like so:
zone "yoursite.com" IN {
type master;
file "/etc/bind/zones/yoursite.db";
};
Now we create the actual the zone database file for our ‘yoursite.db‘ domain:
sudo mkdir /etc/bind/zones
sudo nano /etc/bind/zones/yoursite.db
Now add the following content into the file (obviously replace the
hostnames/IP address with your own personal setup etc.):
;
; BIND data file for yoursite.com
;
$TTL 604800
@ IN SOA carl.ns.cloudflare.com. root.yoursite.com. (
4 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
yoursite.com. 86400 IN NS carl.ns.cloudflare.com.
yoursite.com. 86400 IN NS pat.ns.cloudflare.com.
yoursite.com. IN A 10.10.10.254
localhost. yoursite.com. IN A 127.0.0.1
yoursite.com. IN MX 10 yoursite.com.
mail IN CNAME yoursite.com.
www IN CNAME yoursite.com.
blog IN CNAME yoursite.com.
wiki IN CNAME yoursite.com.
We’re nearly there, now we simply need to restart the BIND daemon for the
changes to take effect:
sudo /etc/init.d/bind9 restart

Más contenido relacionado

La actualidad más candente

Servidor De Correo En Debian
Servidor De Correo En DebianServidor De Correo En Debian
Servidor De Correo En Debian
Cesar Pineda
 

La actualidad más candente (20)

Modul Workshop Mikrotik Bandwidth Management
Modul Workshop Mikrotik Bandwidth ManagementModul Workshop Mikrotik Bandwidth Management
Modul Workshop Mikrotik Bandwidth Management
 
Tìm hiểu MongoDB
Tìm hiểu MongoDBTìm hiểu MongoDB
Tìm hiểu MongoDB
 
Makalah Windows 8
Makalah Windows 8Makalah Windows 8
Makalah Windows 8
 
Chương 5 Chia sẻ file và máy in trên mạng - Giáo trình FPT
Chương 5 Chia sẻ file và máy in trên mạng - Giáo trình FPTChương 5 Chia sẻ file và máy in trên mạng - Giáo trình FPT
Chương 5 Chia sẻ file và máy in trên mạng - Giáo trình FPT
 
Báo cáo môn mã nguồn mở
Báo cáo môn mã nguồn mởBáo cáo môn mã nguồn mở
Báo cáo môn mã nguồn mở
 
Jaringan berbasis luas/ WAN
Jaringan berbasis luas/ WANJaringan berbasis luas/ WAN
Jaringan berbasis luas/ WAN
 
Học python
Học pythonHọc python
Học python
 
Servidor De Correo En Debian
Servidor De Correo En DebianServidor De Correo En Debian
Servidor De Correo En Debian
 
Cơ bản về visual basic
Cơ bản về visual basicCơ bản về visual basic
Cơ bản về visual basic
 
Do hoa may tinh
Do hoa may tinhDo hoa may tinh
Do hoa may tinh
 
Lab lap trinhmang_v3
Lab lap trinhmang_v3Lab lap trinhmang_v3
Lab lap trinhmang_v3
 
Hadoop2.2
Hadoop2.2Hadoop2.2
Hadoop2.2
 
Bai13 bảo mật thông tin
Bai13 bảo mật thông tinBai13 bảo mật thông tin
Bai13 bảo mật thông tin
 
Thiết kế và quản trị web hệ trung cấp
Thiết kế và quản trị web hệ trung cấpThiết kế và quản trị web hệ trung cấp
Thiết kế và quản trị web hệ trung cấp
 
A very brief history of Microsoft Windows
A very brief history of Microsoft WindowsA very brief history of Microsoft Windows
A very brief history of Microsoft Windows
 
Bài 4: Triển khai Active Directory: Quản trị nhóm - Giáo trình FPT
Bài 4: Triển khai Active Directory: Quản trị nhóm - Giáo trình FPTBài 4: Triển khai Active Directory: Quản trị nhóm - Giáo trình FPT
Bài 4: Triển khai Active Directory: Quản trị nhóm - Giáo trình FPT
 
Tìm hiểu về mongodb
Tìm hiểu về mongodbTìm hiểu về mongodb
Tìm hiểu về mongodb
 
Phân quyền trên file và thư mục trên Ubuntu
Phân quyền trên file và thư mục trên UbuntuPhân quyền trên file và thư mục trên Ubuntu
Phân quyền trên file và thư mục trên Ubuntu
 
MikroTik CHR sebagai server DHCP dan Internet Gateway bagi VM dan Container p...
MikroTik CHR sebagai server DHCP dan Internet Gateway bagi VM dan Container p...MikroTik CHR sebagai server DHCP dan Internet Gateway bagi VM dan Container p...
MikroTik CHR sebagai server DHCP dan Internet Gateway bagi VM dan Container p...
 
Implementasi virtual memory windows 10
Implementasi virtual memory windows 10Implementasi virtual memory windows 10
Implementasi virtual memory windows 10
 

Destacado

Iptables fundamentals
Iptables fundamentalsIptables fundamentals
Iptables fundamentals
ram_b17
 
Packet Filtering Using Iptables
Packet Filtering Using IptablesPacket Filtering Using Iptables
Packet Filtering Using Iptables
Ahmed Mekkawy
 

Destacado (14)

Séduire Cette Fille: le guide pour séduire LA femme que vous désirez.
Séduire Cette Fille: le guide pour séduire LA femme que vous désirez.Séduire Cette Fille: le guide pour séduire LA femme que vous désirez.
Séduire Cette Fille: le guide pour séduire LA femme que vous désirez.
 
Iptables Configuration
Iptables ConfigurationIptables Configuration
Iptables Configuration
 
Iptables fundamentals
Iptables fundamentalsIptables fundamentals
Iptables fundamentals
 
Netfilter: Making large iptables rulesets scale
Netfilter: Making large iptables rulesets scaleNetfilter: Making large iptables rulesets scale
Netfilter: Making large iptables rulesets scale
 
Iptables in linux
Iptables in linuxIptables in linux
Iptables in linux
 
L'émotion vecteur d'interaction sur les réseaux sociaux
L'émotion vecteur d'interaction sur les réseaux sociauxL'émotion vecteur d'interaction sur les réseaux sociaux
L'émotion vecteur d'interaction sur les réseaux sociaux
 
Barthes le plaisir du texte
Barthes    le plaisir du texteBarthes    le plaisir du texte
Barthes le plaisir du texte
 
Packet Filtering Using Iptables
Packet Filtering Using IptablesPacket Filtering Using Iptables
Packet Filtering Using Iptables
 
Projet IPTable
Projet  IPTableProjet  IPTable
Projet IPTable
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name System
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
 
TEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkTEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of Work
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similar a Install BIND9 on Ubuntu Server 12.04 LTS

การติดตั้งเครือข่ายภายในบ้าน 11
การติดตั้งเครือข่ายภายในบ้าน 11การติดตั้งเครือข่ายภายในบ้าน 11
การติดตั้งเครือข่ายภายในบ้าน 11
Chonlada078
 
Configuracion de red en ubuntu
Configuracion de red en ubuntuConfiguracion de red en ubuntu
Configuracion de red en ubuntu
Lupita Chacon
 
How to install windows 7 over the network using pxe booting and tftp
How to install windows 7 over the network using pxe booting and tftpHow to install windows 7 over the network using pxe booting and tftp
How to install windows 7 over the network using pxe booting and tftp
Ravi Kumar Lanke
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _Yves
Yves Mukusa
 

Similar a Install BIND9 on Ubuntu Server 12.04 LTS (20)

15 Setup BIND 9
15 Setup BIND 915 Setup BIND 9
15 Setup BIND 9
 
Linux04 dns 2
Linux04 dns 2Linux04 dns 2
Linux04 dns 2
 
Modul quick debserver
Modul quick debserverModul quick debserver
Modul quick debserver
 
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
 
main
mainmain
main
 
Windows 2003 Server
Windows 2003 ServerWindows 2003 Server
Windows 2003 Server
 
Membangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_serverMembangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_server
 
Tutorial : Zimbra on BlankOn
Tutorial : Zimbra on BlankOnTutorial : Zimbra on BlankOn
Tutorial : Zimbra on BlankOn
 
Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8
 
การติดตั้งเครือข่ายภายในบ้าน 11
การติดตั้งเครือข่ายภายในบ้าน 11การติดตั้งเครือข่ายภายในบ้าน 11
การติดตั้งเครือข่ายภายในบ้าน 11
 
Configuracion de red en ubuntu
Configuracion de red en ubuntuConfiguracion de red en ubuntu
Configuracion de red en ubuntu
 
Becoming Linux Expert Series-Install Linux Operating System
Becoming Linux Expert Series-Install Linux Operating SystemBecoming Linux Expert Series-Install Linux Operating System
Becoming Linux Expert Series-Install Linux Operating System
 
เรื่อง 1
เรื่อง 1เรื่อง 1
เรื่อง 1
 
Kickstart server
Kickstart serverKickstart server
Kickstart server
 
How to install windows 7 over the network using pxe booting and tftp
How to install windows 7 over the network using pxe booting and tftpHow to install windows 7 over the network using pxe booting and tftp
How to install windows 7 over the network using pxe booting and tftp
 
3.3_-_Lecture_3_Installing_the_DNS_Server_Role.pdf
3.3_-_Lecture_3_Installing_the_DNS_Server_Role.pdf3.3_-_Lecture_3_Installing_the_DNS_Server_Role.pdf
3.3_-_Lecture_3_Installing_the_DNS_Server_Role.pdf
 
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
 
Kickstart
KickstartKickstart
Kickstart
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _Yves
 
Step by step installation domino on docker
Step by step installation domino on dockerStep by step installation domino on docker
Step by step installation domino on docker
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

Install BIND9 on Ubuntu Server 12.04 LTS

  • 1.                               Install  BIND9  on  Ubuntu  12.04
  • 2. We’re going to setup DNS server using ISC BIND (version 9) on Ubuntu Server 12.04 LTS. First, update your OS: sudo apt-get update && sudo apt-get upgrade After that, install BIND9: sudo apt-get install bind9 Now that BIND is installed, we’re going to edit /etc/bind/named.conf.options and configure BIND to cache requests and forward unresolved queries. sudo nano /etc/bind/named.conf.options Remove the comments from the ‘forwarders’ section and add your external DNS servers. In the below example I’m using Google’s public DNS servers (8.8.8.8 and 8.8.4.4): forwarders { 8.8.8.8; 8.8.4.4; }; So now the next thing that we need to do is to create the actual zone file for our domain (of which in this example is ‘yoursite.db‘): sudo nano /etc/bind/named.conf.local * Replace “yoursite.com” with your domain name. Add a zone for our local domain like so: zone "yoursite.com" IN { type master; file "/etc/bind/zones/yoursite.db"; }; Now we create the actual the zone database file for our ‘yoursite.db‘ domain: sudo mkdir /etc/bind/zones sudo nano /etc/bind/zones/yoursite.db
  • 3. Now add the following content into the file (obviously replace the hostnames/IP address with your own personal setup etc.): ; ; BIND data file for yoursite.com ; $TTL 604800 @ IN SOA carl.ns.cloudflare.com. root.yoursite.com. ( 4 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; yoursite.com. 86400 IN NS carl.ns.cloudflare.com. yoursite.com. 86400 IN NS pat.ns.cloudflare.com. yoursite.com. IN A 10.10.10.254 localhost. yoursite.com. IN A 127.0.0.1 yoursite.com. IN MX 10 yoursite.com. mail IN CNAME yoursite.com. www IN CNAME yoursite.com. blog IN CNAME yoursite.com. wiki IN CNAME yoursite.com. We’re nearly there, now we simply need to restart the BIND daemon for the changes to take effect: sudo /etc/init.d/bind9 restart