Difference between revisions of "Cluster der kan alt/DNS Server"

From Teknologisk videncenter
Jump to: navigation, search
(Installation af DNS)
m
Line 3: Line 3:
 
Instructions
 
Instructions
 
   
 
   
1. To install the DNS server, we need to install Bind 9.
+
==Install DNS sserver software==
  
 +
sudo apt-get install bind9
  
sudo apt-get install bind9
+
==configure DNS (Bind)==
2. Let’s configure Bind. We need to touch 5 files.
+
We need to touch 5 files.
 
   
 
   
 
We will edit 3 files.
 
We will edit 3 files.
/etc/bind/named.conf.local
+
#/etc/bind/named.conf.local
/etc/bind/named.conf.options
+
#/etc/bind/named.conf.options
/etc/resolv.conf
+
#/etc/resolv.conf
 
   
 
   
 
We will create 2 files.
 
We will create 2 files.
/etc/bind/zones/mydomain.com.db
+
#/etc/bind/zones/mydomain.com.db
/etc/bind/zones/rev.0.168.192.in-addr.arpa
+
#/etc/bind/zones/rev.0.168.192.in-addr.arpa
 
   
 
   
A. First step. Lets add our domain zone – mydomain.com.
+
===First step: add domain zone – mydomain.com===
 
 
  
sudo vi /etc/bind/named.conf.local
 
  
 +
*sudo vi /etc/bind/named.conf.local
 +
<source lang=cli>
 
# Our domain zone
 
# Our domain zone
 
zone "mydomain.com" {
 
zone "mydomain.com" {
Line 33: Line 34:
 
   type master;
 
   type master;
 
   file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
 
   file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
 +
</source>
  
# Save file. Exit.
+
{{Source cli}}
 +
[[Category:Cliuster]][[Category:Ubuntu]]

Revision as of 11:25, 18 April 2012

Installation af DNS

Instructions

Install DNS sserver software

sudo apt-get install bind9

configure DNS (Bind)

We need to touch 5 files.

We will edit 3 files.

  1. /etc/bind/named.conf.local
  2. /etc/bind/named.conf.options
  3. /etc/resolv.conf

We will create 2 files.

  1. /etc/bind/zones/mydomain.com.db
  2. /etc/bind/zones/rev.0.168.192.in-addr.arpa

First step: add domain zone – mydomain.com

  • sudo vi /etc/bind/named.conf.local
# Our domain zone
zone "mydomain.com" {
   type master;
   file "/etc/bind/zones/mydomain.com.db";

 
# For reverse DNS 
zone "0.168.192.in-addr.arpa" {
   type master;
   file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";