Dobrý den, snažím se postavit domácí server s DHCP, DNS a Sambou. Zadrhl jsem se u DNS serveru. Přečetl jsem zde asi 5 problémů o DNS, ale ani jeden nevyřešil můj problém.
Problém je následující :
root@server:/etc/bind# host server
Host server not found: 3(NXDOMAIN)
Bind běží. Zkoušel jsem i restart a stále je stejný problém.
Konfigurační soubory:
named.conf.options
include "/etc/bind/named.conf.default-zones";
root@server:/etc/bind# cat named.conf.options
options {
directory "/var/named";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
192.168.205.1;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
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 "SLATINSKY.cz" {
type master;
file "doma.named";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "doma.rev";
};
doma.named
$ORIGIN .
$TTL 6400
SLATINSKY.cz IN SOA server.SLATINSKY.cz. root.SLATINSKY.cz (
2011022100;
8H ;
2h ;
3W ;
1D );
$TTL 86400
IN NS server.SLATINSKY.cz.
IN MX 5 server.SLATINSKY.cz.
$ORIGIN SLATINSKY.cz.
server IN A 192.168.1.3
KATKA-PC IN A 192.168.1.120
mail IN CNAME server
pop3 IN CNAME server
smtp IN CNAME server
doma.rev
$TTL 6400
@ IN SOA server.SLATINSKY.cz. root.SLATINSKY.cz (
2011022101;
8H;
2h;
3W;
1D );
$TTL 86400
IN NS server.SLATINSKY.cz.
3 IN PTR server.SLATINSKY.cz.
13 IN PTR KATKA-PC.SLATINSKY.cz.
Kontrola konfiguračních souborů pomocí named-checkzone
je v pořádku. Předem děkuji za jakoukoliv odpověď.