Сильно не пинайте, начинаю изучать Linux. Подскажите в чем проблема пжл.
сеть 192,168,0,0.24 DNS 192.168.0.1 1 (имя rdh) клиент 192.168.0.37 все в локалкеnamed.conf
options {
listen-on port 53 { 127.0.0.1; 192.168.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { localhost; 192.168.0.0/24; };
allow-transfer { none; };
//allow-query-cache { localhost; 192.168.0.0/24;};
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; 192.168.0.0/24;};
match-destinations { localhost; 192.168.0.0/24;};
recursion yes;
include "/etc/named.rfc1912.zones";
};
view "internal" {
recursion yes;
match-clients { any; }; // our network
zone "sibgipro.org" IN {
type master;
check-names ignore;
file "/var/named/sibgipro.org.zone";
allow-update { none; };
};
};
iew "internall" {
recursion yes;
match-clients { any; }; // our network
zone "0.168.192.in-addr.arpa" in {
check-names ignore;
type master;
file "/var/named/192.168.0.zone";
allow-update { none; };
};
};
192.168.0.zone
$TTL 86400
@ IN SOA rdh.sibgipro.org. root.sibgipro.org. (
2010080409 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS rdh.ssibgipro.org.
1 IN PTR localhost.
nsk.ru.zone
$TTL 86400
@ IN SOA rdh.sibgipro.org. root.sibgipro.org. (
2010080408 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
; DNS Servers
IN NS rdh.sibgipro.org.
; MX Records
; IN MX 10 mail.domen.ru.
; Machine Names
rdh IN A 192.168.0.1
Проверка зон:
named-checkzone /var/named/chroot/etc/named.conf /var/named/chroot/var/named/192.168.0.zone
zone /var/named/chroot/etc/named.conf/IN: loaded serial 2010080409
OK
named-checkzone /var/named/chroot/etc/named.conf /var/named/chroot/var/named/sibgipro.org.zone
/var/named/chroot/var/named/nsk.ru.zone:16: rdh./var/named/chroot/etc/named.conf: bad owner name (check-names)
zone /var/named/chroot/etc/named.conf/IN: loaded serial 2010080408
OK
iptables
GNU nano 1.3.12 File: /etc/sysconfig/iptables
# Generated by iptables-save v1.3.5 on Tue Aug 3 07:25:09 2010
*filter
:INPUT ACCEPT [158:12719]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [75:7740]
:CLASS-RULES - [0:0]
-A INPUT -j CLASS-RULES
-A CLASS-RULES -i lo -j ACCEPT
-A CLASS-RULES -p icmp -j ACCEPT
-A CLASS-RULES -m state --state ESTABLISHED,RELATED -j ACCEPT
-A CLASS-RULES -p tcp -m tcp --dport 22 -j ACCEPT
-A CLASS-RULES -m state --state NEW -p udp --dport 514 -j ACCEPT
-A CLASS-RULES -j LOG
-A CLASS-RULES -j REJECT
-A CLASS-RULES -p tcp -m tcp --dport 53 -j ACCEPT
-A CLASS-RULES -p udp -m udp --dport 53 -j ACCEPT
-A CLASS-RULES -p udp -m udp --dport 123 -j ACCEPT
-A CLASS-RULES -p tcp -m tcp --dport 113 -j ACCEPT
-A CLASS-RULES -p tcp -m tcp --dport 143 -j ACCEPT
resolv.conf
nameserver 127.0.0.1
search sibgipro.org
domain sibgipro.org
Запросы с сервера
dig sibgipro.orgu
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> sibgipro.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 59817
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;sibgipro.org. IN A
;; Query time: 42 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Aug 4 09:28:09 2010
;; MSG SIZE rcvd: 33
dig -t axfr sibgipro.org
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> -t axfr sibgipro.org
;; global options: printcmd
; Transfer failed.
nslookup 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
1.0.0.127.in-addr.arpa name = localhost.
nslookup sibgipro.org
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find sibgipro.org.sibgipro.org: SERVFAIL