Добрый день!
Решил у себя дома для экспериментов установить Ubuntu Server 13.10 на Виртуальную машину.
Первый эксперимент по настройке DHCP-сервера прошёл гладко, а вот с DNS какие-то проблемы.
Настройку делал вот по этому руководству
http://linuxfan.com.ua/2012/12/ubuntu-server-ustanovka-i-nastrojka-dns-servera/ (Отличия только в имени сервера "ubuntuserver" и ip-адреса (192.168.0.8 ))
Но при первой же проверке:
> nslookup ubuntuserver
Server: 127.0.0.1
Address: 127.0.1.1#53
** server can't find ubuntuserver: SERVFAIL
Проверил все настройки несколько раз.
--------------------------------------
Файл resolv.conf:
nameserver 127.0.0.1
search example.net
---------------------------------------
Файл /etc/bind/named.conf.options:
options {
directory «/var/cache/bind»;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
forwarders {
8.8.8.8;
};
listen-on {
127.0.0.1;
192.168.0.8;
};
};
-------------------------------------------
Файл /etc/bind/named.conf.local
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "4GD8OIb8pZk4vAueACAfUQ==";
};
zone "example.net" IN {
type master;
file "/var/lib/bind/forward.db";
allow-update { key DHCP_UPDATER; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "/var/lib/bind/reverse.db";
allow-update { key DHCP_UPDATER; };
};
------------------------------------------------
Файл /var/lib/bind/forward.db
$TTL 86400 ; 1 day
example.net. IN SOA ubuntuserver.example.net. admin.example.net. (
20110103 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ubuntuserver.example.net.
IN A 192.168.0.8
localhost IN A 127.0.0.1
ubuntuserver01 IN A 192.168.0.8
-----------------------------------------------------------------
Файл /var/lib/bind/reverse.db
$TTL 86400 ; 1 day
example.net. IN SOA ubuntuserver01.example.net. admin.example.net. (
20110103 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ubuntuserver01.example.net.
IN A 192.168.10.1
localhost IN A 127.0.0.1
ubuntuserver01 IN A 192.168.0.8
-------------------------------------------------------
Файл /etc/network/interfaces
iface eth1 inet static
address 192.168.0.8
netmak 255.255.255.0
dns-nameservers 127.0.0.1
dns-domain example.net
dns-search example.net
auto eth1
--------------------------------------------------------
Подскажите пожалуйста где копать хоть ?