页:
[1]
|
Dns的配置问题!!
vi /etc/named.conf
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update {none;};
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "localhost.zone";
allow-update {none;};
};
zone "yangyj.com" IN {
type master;
file "named.yangjh";
allow-update {none;};
};
zone "112.1.10.in-addr.arpa"IN {
type master;
file "named.rev";
allow-update {none;};
};
vi /var/named/named.yangjh
$TTL 86400
@ IN SOA yangjh.com. root.yangjh.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS yangjh.com.
IN A 10.1.112.59
IN MX 1 yangjh.com.
www IN A 10.1.112.59
ftp IN A 10.1.112.59
mail IN A 10.1.112.59
vi /var/named/named.rev
$TTL 86400
@ IN SOA yangjh.com. root.yangjh.com. (
20041218
28800
14400
3600000
86400 )
@ IN NS yangjh,com.
1 IN PTR [url]www.yangjh.com.[/url]
2 IN PTR ftp.yangjh.com.
3 IN PTR mail.yangjh.com.
我是在一所学校的宿舍,是通过NAT技术连接到Internet的
学校的IP地址是 210.29.64.8当使用
named-checkzone yangjh.com /var/named/named.yangjh
zone yangjh.com/IN: loaded serial 1997022700
OK
named-checkzone yangjh.com /var/named/named.rev
zone yangjh.com/IN: loaded serial 20041218
OK
我的机子内网IP地址是10.1.112.59
在测试的时候:
nslookup [url]www.yangjh.com[/url]
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.
Server: 210.29.64.8
Address: 210.29.64.8#53
** server can't find [url]www.yangjh.com:[/url] NXDOMAIN
请问各位大虾是什么原因啊!!!!
谢谢!
还有就是
vi /etc/hosts
# that require network functionality will fail.
127.0.0.1 yjh yangjh.com yangjh
vi /etc/sysconfig/network
NETWORKING=yes
GATEWAY=10.1.112.1
HOSTNAME=yangjh.com
~
我们的 网关是10.1.112.1
请大家看看上面有什么配置的错误????????
还有就是我使用cd /var/named 的时候
上面显示
0.0.127.in-addr.arpa.zone named.ca named.mydomain.com named.rev
localhost.zone named.local named.mydomain.com.rev named.yangjh
我也不知道上面的文件到底哪个重要(有的是我以前弄的)
是不是可以删除??????
谢谢? |
Powered by Discuz! Archiver 6.1.0
© 2001-2006 Comsenz Inc.
Processed in 0.005879 second(s), 2 queries |