Опубликовано 03/12/2014
1) Создаем новый конфигурационный файл:
root@happyblitz:/etc/bind# cat e-nail-s.ru
$TTL 150
$ORIGIN e-nail-s.ru.
@ 150 IN SOA ns.happyblitz.ru. admin@e-nail-s.ru (
2014112701 ; serial
150 ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS ns52.ruweb.net.
IN NS ns51.ruweb.net.
IN A 185.11.246.126
www IN CNAME e-nail-s.ru.
2) Добавляем информацию о зоне:
root@happyblitz:/etc/bind# cat 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 "happyblitz.ru" { type master; file "/etc/bind/happyblitz.ru"; };
zone "e-nail-s.ru" { type master; file "/etc/bind/e-nail-s.ru"; };
3) Перезагружаем bind
root@happyblitz:/etc/bind# /etc/init.d/bind9 restart
[....] Stopping domain name service...: bind9waiting for pid 25728 to die
. ok
[ ok ] Starting domain name service...: bind9.
4) Проверка
oleg@oleg-PC:~$ host e-nail-s.ru happyblitz.ru
Using domain server:
Name: happyblitz.ru
Address: 185.11.246.126#53
Aliases:
e-nail-s.ru has address 185.11.246.126
Добавить комментарий