我按照一些教程,为我的域名设置了网站托管和域名服务器:etechnical.com .
Nameservers :ns1.etechnical.com和ns2.etechnical.com
我配置了apache(httpd.conf)和bind(named.conf) .
The domain/hosting resolves fine. (即etechnical.com解析为测试页面)
nslookup etechnical.com - 看起来很好 .
The problem
nslookup 192.249.58.225 - 显示NXDOMAIN错误 - 它找不到与ip地址关联的域 .
这告诉我我的反向区域文件有问题?
这是我的配置文件:
named.conf file:
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
// query-source address * port 53;
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
zone "etechnical.com" IN {
type master;
file "/var/named/etechnical.com";
allow-update { none; };
};
zone "58.249.192.in-addr.arpa" IN {
type master;
file "/var/named/58.249.192.rev";
allow-update { none; };
};
include "/etc/rndc.key";
/var/named/etechnical.com zone file:
; Authoritative data for etechnical.com
$TTL 14400
@ IN SOA ns1.etechnical.com. root.ns.etechnical.com. (
2006071701 ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
IN NS ns1.etechnical.com.
IN NS ns2.etechnical.com.
IN A 192.249.58.225
* IN A 192.249.58.225
ns IN A 192.249.58.225
mail IN CNAME etechnical.com.
ftp IN CNAME etechnical.com.
ns2 IN A 192.249.58.225
58.249.192.rev - reverse zone map or file (problem here??):
$TTL 86400
@ IN SOA ns1.etechnical.com. root.ns.etechnical.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D) ; minimum
@ IN NS ns1.etechnical.com.
1 IN PTR etechnical.com.
resolv.conf file
nameserver 127.0.0.1 //I added this line?
nameserver 8.8.8.8 //already here...
nameserver 8.8.4.4 //already here...
在进行更改后,我通常a)重新启动bind和b)rndc重新加载
1 回答
看起来你已经弄明白了 . 对于记录,在您的反向区域文件中,您只有IP的条目以1结尾,并且您还需要225的条目,根据您在问题中的示例: