Cluster der kan alt/DNS Server

From Teknologisk videncenter
< Cluster der kan alt
Revision as of 10:16, 18 April 2012 by Nfoged (talk | contribs) (Installation af DNS)
Jump to: navigation, search

Installation af DNS

Instructions

1. To install the DNS server, we need to install Bind 9.


sudo apt-get install bind9 2. Let’s configure Bind. We need to touch 5 files.

We will edit 3 files. /etc/bind/named.conf.local /etc/bind/named.conf.options /etc/resolv.conf

We will create 2 files. /etc/bind/zones/mydomain.com.db /etc/bind/zones/rev.0.168.192.in-addr.arpa

A. First step. Lets add our domain zone – mydomain.com.


sudo vi /etc/bind/named.conf.local

  1. Our domain zone

zone "mydomain.com" {

  type master;
  file "/etc/bind/zones/mydomain.com.db";

};

  1. For reverse DNS

zone "0.168.192.in-addr.arpa" {

  type master;
  file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";

}; Save file. Exit.