Я пытаюсь заставить работать BIND (по имени), но у меня есть некоторые проблемы. именованные нагрузки и все, но когда я делаю
dig -x 127.0.0.1
Я получил:
; <<>> DiG 9.9.4-rpz2.13269.14-P2 <<>> -x 127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62929
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR
;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 86222 IN PTR localhost.
;; Query time: 64 msec
;; SERVER: 192.168.1.2#53(192.168.1.2)
;; WHEN: Thu Aug 07 21:47:43 PDT 2014
;; MSG SIZE rcvd: 63
Мой хост не указан.
Вот мой /etc/named.conf
options {
forward first;
forwarders { 192.168.1.2; };
directory "/var/lib/named";
dump-file "/var/lib/named/data/cache_dump.db";
statistics-file "/var/lib/named/data/named_stats.txt";
query-source address * port 53;
listen-on { 127.0.0.1; 192.168.1.26; };
allow-query { 127.0.0.1; 192.168.1.0/24; };
};
zone "catch22bbs.com" in {
type master;
file "/var/lib/named/etc/catch22bbs.com";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "/var/lib/named/etc/reverse-192.168.1.0";
allow-update { none; };
};
Вот мой /var/lib/named/etc/catch22bbs.com
;
; Zone File for "catch22bbs.com" - Internal Use ONLY
;
$TTL 1D
@ IN SOA catch22bbs.com. ignatius3399.gmail.com. (
10 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
;
IN NS catch22bbs ; Name Server for the domain
IN MX 10 catch22bbs ; Mail Exchange
catch22bbs.com. IN A 192.168.1.26 ; IP address for the domain
catch22bbs IN A 192.168.1.26 ; IP address for 'galaxy'
www IN CNAME catch22bbs ; 'galaxy' is also known as www
ftp IN CNAME catch22bbs ; 'galaxy' is also known as ftp
;
;wkstn1 IN A 192.168.1.201 ; MANUAL IP address entry for 'wkstn1'
;wkstn2 IN A 192.168.1.202 ; MANUAL IP address entry for 'wkstn2'
Вот мой /var/lib/named/etc/reverse-192.168.1.0
$TTL 1D
@ IN SOA catch22bbs.com. ignatius3399.gmail.com. (
10 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
IN NS catch22bbs.com.
1 IN PTR catch22bbs.com.
;
;201 IN PTR wkstn1.example.com. ; MANUAL entry for 'wkstn1'
;202 IN PTR wkstn2.example.com. ; MANUAL entry for 'wkstn2'
Я не уверен, что я делаю неправильно. Любая помощь очень ценится. Спасибо, JL