Имеется debian 11 в VirtualBox, не понимаю почему host www.server.com localhost Выдает:
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:
Host www.server.com not found: 2(SERVFAIL)
А по идее должно выдавать:
www.server.com is an alias for server.com.
server.com has address 10.0.2.15
Прилагаю все конфиги далее:
named.conf.default-zones
{
type hint;
file "/usr/share/dns/root.hints";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "server.com" {
type master;
file "etc/bind/db.server";
};
zone "2.0.10.in-addr.arpa" {
type master;
file "/etc/bind/db.10";
};
db.server
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA server.com. admin.server.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS server.com.
@ IN A 10.0.2.15
local IN A 10.0.2.15
www IN CNAME server.com.
sites IN CNAME www.server.com.
db.10
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA server.com. admin.server.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS server.com.
15 IN PTR server.com.
named.conf.options
options {
directory "/var/cache/bind";
forwarders {
8.8.8.8;
};
dnssec-validation auto;
listen-on-v6 { any; };
};