Задача следущая. Создать master DNS для локалки, без инета. Первоначальная задача, чтоб с самого сервака проходили запросы на самого себя.
Команда host 88.1.1.111 выдаёт ошибку time-out. В чем ошибка? named.conf
Задача следущая. Создать master DNS для локалки, без инета. Первоначальная задача, чтоб с самого сервака проходили запросы на самого себя.
Команда host 88.1.1.111 выдаёт ошибку time-out. В чем ошибка? named.conf
А чо у тя адрес то на 88.Так нельзя .надо на 192.168 или на 10.
Код:
bash-2.05b# cat named.conf
// $FreeBSD: src/etc/namedb/named.conf,v 1.21.2.1 2005/09/10 08:27:27 dougb Exp $
//
// Refer to the named.conf(5) and named(8) man pages, and the documentation
// in /usr/share/doc/bind9 for more details.
//
// If you are going to set up an authoritative server, make sure you
// understand the hairy details of how DNS works. Even with
// simple mistakes, you can break connectivity for affected parties,
// or cause huge amounts of useless Internet traffic.
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
// If named is being used only as a local resolver, this is a safe default.
// For named to be accessible to the network, comment this option, specify
// the proper IP address, or delete this option.
// listen-on { 127.0.0.1; };
// If you have IPv6 enabled on this system, uncomment this option for
// use as a local resolver. To give access to the network, specify
// an IPv6 address, or the keyword "any".
// listen-on-v6 { ::1; };
// In addition to the "forwarders" clause, you can force your name
// server to never initiate queries of its own, but always ask its
// forwarders only, by enabling the following line:
//
// forward only;
// If you've got a DNS server around at your upstream provider, enter
// its IP address here, and enable the line below. This will make you
// benefit from its cache, thus reduce overall DNS traffic in the Internet.
listen-on {
127.0.0.1;
192.168.1.0/24;
};
// query-source address 192.168.1.1;
forwarders {
80.82.162.82;
80.82.162.118;
};
forward first;
};
#key DHCP_UPDATER {
# algorithm HMAC-MD5.SIG-ALG.REG.INT;
# secret tEwkmt8MfeZEwmVtsLFoeA==;
# };
logging {
channel update_debug {
file "/var/log/named-update.log";
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_info {
file "/var/log/named-auth.log";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category update { update_debug; };
category security { security_info; };
};
zone "." IN {
type hint;
file "named.root";
};
zone "localhost" IN {
type master;
file "/etc/namedb/master/localhost.rev";
allow-update { none; };
};
zone "server.ru" {
type master;
file "/etc/namedb/server.ru.hosts";
forwarders { 192.168.1.1;
192.168.2.1;
192.168.3.1; };
# allow-update {key DHCP_UPDATER;};
allow-update {none;};
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/namedb/192.168.1.rev";
forwarders { 192.168.1.1;
192.168.2.1;
192.168.3.1;};
# allow-update {key DHCP_UPDATER;};
allow-update {none;};
};
bash-2.05b# cat server.ru.hosts
$TTL 38400 ; 10 hours 40 minutes
@ IN SOA server.ru. root.server.ru. (
1164603897; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
604800; expire (1 week)
38400 ; minimum (10 hours 40 minutes)
)
IN NS server.ru.
server.ru. IN A 192.168.1.1
www IN CNAME server.ru.
free IN CNAME server.ru.
sharikoff IN A 192.168.1.2
mail IN A 192.168.1.3
irc IN CNAME server.ru.
hub IN CNAME server.ru.
wow IN A 192.168.1.254bash-2.05b#