Public feed
#527218
установил bind9
GNU nano 2.0.2 File: /etc/bin/named.conf
zone "fantoo.kz" {
type master;
file "fantoo.kz";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "0.168.192.in-addr.arpa";
};
добавил в папку zone
GNU nano 2.0.2 File: /etc/bind/zone/fantoo.kz
$TTL 1D
@ IN SOA server root.server fantoo.kz (
2004082202 ; serial
12H ; refresh
1H ; retry
1W ; expire
1H ; ncache
)
IN NS server
MX 10 server
server A 192.168.0.2
www CNAME server
mail CNAME server
jack A 192.168.0.2
jill A 192.168.0.2
GNU nano 2.0.2 File: /etc/bind/zone/0.168.192.in-addr.arpa
$TTL 1D
@ IN SOA server.fantoo.kz. root.server.fantoo.kz (
2004082201 ; serial
12H ; refresh
1H ; retry
1W ; expire
1H ; ncache
)
IN NS server.fantoo.kz.
0 PTR fantoo.kz.
2 PTR server.fantoo.kz.
2 PTR jack.fantoo.kz.
2 PTR jill.fantoo.kz.
GNU nano 2.0.2 File: /etc/resolv.conf
nameserver 192.168.0.2
root@fantoo:/usr/src/zcs# /etc/init.d/bind9 start
root@fantoo:/usr/src/zcs# dig fantoo.kz
; <<>> DiG 9.3.4 <<>> fantoo.kz
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 25090
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;fantoo.kz. IN A
;; Query time: 0 msec
;; SERVER: 192.168.0.2#53(192.168.0.2)
;; WHEN: Thu May 31 10:36:58 2007
;; MSG SIZE rcvd: 27
root@fantoo:/usr/src/zcs# proga
No results returned for A lookup of fantoo.kz
Checked nameservers:
192.168.0.2
DNS ERROR resolving fantoo.kz
It is suggested that the hostname be resolveable via DNS