- Lägg upp en zone-fil för domänen på systemq.qwert.se
- Lägg upp en zonfile 192.168.5.zone på systemq.qwert.se
$TTL 38400
@ IN SOA dns2.qwert.se. gbk.qwert.se. (
2011042701
10800
3600
604800
38400 )
NS dns2.qwert.se.
NS server1.delldesign.se.
1 PTR server1.delldesign.se.
- Lägg in domänen i named.conf i systemq.qwert.se med denna som master
zone "delldesign.se" {
allow-transfer { any; };
type master;
file "db.delldesign";
also-notify { 192.168.30.4;192.168.31.61; }; Ändras bid installation hos kund
zone "5.168.192.in-addr.arpa" {
allow-transfer { any; };
type master;
file "192.168.5.zone";
also-notify { 192.168.30.4;192.168.31.61; }; Ändras bid installation hos kund
};
192.168.31.61 ändras till servens slutgiltiga ipnr vid leverans
- vi /etc/named.conf
options {
listen-on port 53 { any; };
//listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
dnssec-enable no;
dnssec-validation no;
dnssec-lookaside no;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
forwarders {195.67.199.15; 195.67.199.16;};
}
Lägg till zonerna som slav
zone "cyberstore.se" {
allow-transfer { any; };
# type master;
# file "cyberstore.se.zone";
# also-notify { 192.168.30.4; };
type slave;
file "slaves/cyberstore.se.zone";
masters {
192.168.31.3;
};
};
- på systemq.qwert.se /etc/init.d/named restart
- på kundservern systemctl enable named.service
systemctl start named.service
"systemctl status named.service" visar eventuella fel
kolla /var/log/messages efter mer info
- /etc/sysconfig/named:
ENABLE_ZONE_WRITE=yes