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

From Teknologisk videncenter
Jump to: navigation, search
(Installation af DNS)
(Installation af DNS)
Line 47: Line 47:
 
</source>
 
</source>
  
 +
===Third step: Modify the resolv.conf file
  
 +
$ Sudo vi /etc/resolve.conf
 +
 +
<source lang=cli>
 +
search mydomain.com.
 +
nameserver 192.168.0.9
 +
</source>
  
 
{{Source cli}}
 
{{Source cli}}
 
[[Category:Cliuster]][[Category:Ubuntu]]
 
[[Category:Cliuster]][[Category:Ubuntu]]

Revision as of 12:09, 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";
}

Secund step: Add the DNS servers from your ISP

  1. Sudo vi /etc/bind/named.conf.options
Forwarders {
 x.x.x.x
};

===Third step: Modify the resolv.conf file

$ Sudo vi /etc/resolve.conf

search mydomain.com.
nameserver 192.168.0.9