no servers could be reached
uifiddle at gmail.com
uifiddle at gmail.com
Thu Jul 28 08:16:16 UTC 2011
dig kia.czj
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> kia.czj
;; global options: printcmd
;; connection timed out; no servers could be reached
my ip is 192.168.18.128
my named.conf
options {
listen-on port 53 { 192.168.18.128; 127.0.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 { 192.168.18.128; 127.0.0.1; };
allow-query-cache { 192.168.18.128; 127.0.0.1; };
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
view czj {
match-clients { 192.168.18.128; localhost; };
match-destinations { 192.168.18.128; localhost; };
recursion yes;
zone "czj" {
type master;
file "czj.zone";
};
};
# End of named.conf
my czj.zone
$TTL 86400
czj. IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
czj. IN NS localhost.
kia IN A 192.168.18.1
my /etc/resolve.conf
; generated by /sbin/dhclient-script
search czj
nameserver 192.168.18.128
named-checkzone named-checkconf passed, I suppose the configure works
but only get no servers could be reached.What's wrong with my config?
Thanks in advance.
More information about the bind-users
mailing list