Difference between revisions of "Cluster der kan alt/DNS Server"
From Teknologisk videncenter
(→First step: add domain zone – dka.dk) |
|||
Line 16: | Line 16: | ||
We will create 2 files. | We will create 2 files. | ||
− | #/etc/bind/zones/ | + | #/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 | ||
− | ===First step: add domain zone – | + | ===First step: add domain zone – mydomain.com=== |
Line 25: | Line 25: | ||
<source lang=cli> | <source lang=cli> | ||
# Our domain zone | # Our domain zone | ||
− | zone " | + | zone "mydomain.com" { |
type master; | type master; | ||
− | file "/etc/bind/zones/ | + | file "/etc/bind/zones/mydomain.com.db"; |
} | } | ||
Line 35: | Line 35: | ||
file "/etc/bind/zones/rev.0.168.192.in-addr.arpa"; | file "/etc/bind/zones/rev.0.168.192.in-addr.arpa"; | ||
} | } | ||
− | |||
− | |||
− | |||
</source> | </source> | ||
− | + | ===Secund step: Add the DNS servers from your ISP=== | |
− | |||
− | |||
+ | # Sudo vi /etc/bind/named.conf.options | ||
− | + | <source lang=cli> | |
− | + | Forwarders { | |
− | + | x.x.x.x | |
− | + | }; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{Source cli}} | {{Source cli}} | ||
[[Category:Cliuster]][[Category:Ubuntu]] | [[Category:Cliuster]][[Category:Ubuntu]] |
Revision as of 12:04, 18 April 2012
Contents
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.
- /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
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
- Sudo vi /etc/bind/named.conf.options
<source lang=cli> Forwarders {
x.x.x.x
};