- 论坛徽章:
- 0
|
我用的是redhat9自带的bind
配置完后发现解析的地址错误
[root@localhost root]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> www.killgoogle.com
Server: 202.196.41.126
Address: 202.196.41.126#53
Non-authoritative answer:
www.killgoogle.com canonical name = killgoogle.com.
Name: killgoogle.com
Address: 68.178.232.100
> 202.196.41.126
Server: 202.196.41.126
Address: 202.196.41.126#53
** server can't find 126.41.196.202.in-addr.arpa: NXDOMAIN
我查了一下,出来的地址:68.178.232.100是一个域名解析的网站.
我再用named -g提示如下:
[root@localhost root]# named -g
Apr 18 19:26:53.860 starting BIND 9.2.1 -g
Apr 18 19:26:53.861 using 1 CPU
Apr 18 19:26:53.897 loading configuration from '/etc/named.conf'
Apr 18 19:26:53.928 no IPv6 interfaces found
Apr 18 19:26:53.929 listening on IPv4 interface lo, 127.0.0.1#53
Apr 18 19:26:53.929 binding TCP socket: address in use
Apr 18 19:26:53.929 listening on IPv4 interface eth0, 202.196.41.126#53
Apr 18 19:26:53.929 binding TCP socket: address in use
Apr 18 19:26:53.939 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use
Apr 18 19:26:53.953 ignoring config file logging statement due to -g option
Apr 18 19:26:53.966 couldn't open pid file '/var/run/named/named.pid': File exists
Apr 18 19:26:53.967 exiting (due to early fatal error)
///////////////
我的named.conf如下:
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "killgooglen.com" IN {
type master;
file "killgoogle.com";
};
zone "41.196.202.in-addr.arpa" IN {
type master;
file "202.196.41.rev";
};
include "/etc/rndc.key";
版主,,,,帮下忙喔........
[ 本帖最后由 killgoogle 于 2008-4-18 22:22 编辑 ] |
|