Quantcast
Channel: Linux.org.ru: Форум
Viewing all articles
Browse latest Browse all 109791

DNS bind9 Настройка

$
0
0

Здравствуйте. Есть 2 почтовых сервера(192.168.0.1 и 192.168.0.10) на связке dovecot+exim4 (nku.example.nku и nrku.mail.nrku). Между ними пытаюсь настроить dns сервер для обмена эл. почтой между собой. Настраиваю на первом сервере(192.168.0.1)

Named.conf.local

 //
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "example.nku" {
    type master;
    file "/etc/bind/db.example.nku";
};

zone "0.168.192.in-addr.arpa" {
    type master;
    file "/etc/bind/0.168.192.in-addr.arpa.zone";
};
db.example.nku
 $TTL 30
$ORIGIN example.nku.

@ IN SOA	 nku.example.nku. test.example.nku. (
		2016031816 ; Serial
		1d ; Refresh
		1h ; Retry
		1w ; Expire
		2h ; Negative Cache TTL
)

@		IN	NS	nku.example.nku.		; Master
@		IN	A	192.168.0.1	;
@		IN	MX	10	nku.example.nku.	;

nku		IN	A	192.168.0.1
mailserver	IN	A	192.168.0.1
0.168.192.in-addr.arpa
 $TTL 30
$ORIGIN 0.168.192.in-addr.arpa.

@ IN SOA	 nku.example.nku. test.example.nku. (
		2016031808 ; Serial
		1d ; Refresh
		1h ; Retry
		1w ; Expire
		2h ; Negative Cache TTL
)
		NS	nku.example.nku.

1	PTR	nku.example.nku.
2	PTR	nrku.mail.nrku.
10	PTR	nku.example.nku.
 
файл resolv.conf
nameserver 192.168.0.1
domain example.nku

набираю команду #nslookup nku

server: 192.168.0.1
address: 192.168.0.1#53

Name: nku.example.nku
Address: 192.168.0.1
 
А при #nslookup nrku
 
server: 192.168.0.1
address: 192.168.0.1#53

Name: nrku.example.nku
Address: 192.168.0.1
Хотя по идее должно быть mail.nrku Как добавить несколько зон на одном сервере?Правильно ли я настроил сам dns сервер?

 , , , ,


Viewing all articles
Browse latest Browse all 109791

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>