- 论坛徽章:
- 0
|
使用nslookup查询出现下面的问题。
>;foo# nslookup
>; lserver 192.168.0.111
Default server: 192.168.0.111
Address: 192.168.0.111#53
>; foo.bar.com
;; connection timed out; no servers could be reached
>; lserver localhost
Default server: localhost
Address: ::1#53
>; foo.bar.com
Server: localhost
Address: ::1#53
** server can't find foo.bar.com: NXDOMAIN
>;
/var/log/messages日志里出现的信息。
Dec 15 14:06:13 foo named[574]: starting BIND 9.3.0
Dec 15 14:06:13 foo named[574]: could not listen on UDP socket: address in use
Dec 15 14:06:13 foo named[574]: creating IPv4 interface lo0 failed; interface ignored
Dec 15 14:06:13 foo named[574]: could not listen on UDP socket: address in use
Dec 15 14:06:13 foo named[574]: creating IPv6 interface lo0 failed; interface ignored
Dec 15 14:06:13 foo named[574]: not listening on any interfaces
Dec 15 14:06:13 foo named[574]: couldn't add command channel 127.0.0.1#953: address in use
Dec 15 14:06:13 foo named[574]: couldn't add command channel ::1#953: address in use
Dec 15 14:06:13 foo named[574]: could not listen on UDP socket: address in use
Dec 15 14:06:13 foo named[574]: creating IPv4 interface lo0 failed; interface ignored
Dec 15 14:06:13 foo named[574]: could not listen on UDP socket: address in use
Dec 15 14:06:13 foo named[574]: creating IPv6 interface lo0 failed; interface ignored
named.conf文件内容:
foo# less named.conf
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { 127.0.0.1; };
listen-on-v6 { ::1; };
};
zone "." {
type hint;
file "named.root";
};
zone "bar.com" {
type master;
file "master/bar.com";
allow-query {any;};
};
zone "0.168.192.IN-ADDR.ARPA" {
type master;
file "master/0.168.192";
};
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.IP6.ARPA" {
type master;
file "master/fec0:0:0:1";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "master/localhost.rev";
};
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {
type master;
file "master/localhost-v6.rev";
};
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
type master;
file "master/localhost-v6.rev";
}; foo# less bar.com
; From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90
; $FreeBSD: src/etc/namedb/PROTO.localhost.rev,v 1.6 2000/01/10 15:31:40 peter Exp $
;
; This file is automatically edited by the `make-localhost' script in
; the /etc/namedb directory.
;
$TTL 3600
@ IN SOA foo.bar.com. root.bar.com. (
20041215; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
;
;Name server (The name '@' is implied)
;
IN NS foo.bar.com.
;
;Addresses for the canonical names
;
localhost IN A 127.0.0.1
localhost IN AAAA ::1
foo IN A 192.168.0.111
foo IN AAAA fec0:0:0:1::1
www IN A 192.168.0.111
www IN AAAA fec0:0:0:1::1
ftp IN A 192.168.0.111
ftp IN AAAA fec0:0:0:1::1
帮忙看看是怎么回事。 |
|