我想运行一个 dns 服务器来拥有我自己的名称服务器:ns1.radicalteam.ir 和 ns2.radicalteam.ir
我有一台 VPS 并在其上安装了 Centos 6.5,以及 Radicalteam.ir 和 Soulati.ir 域 我已将 Soulati.ir 名称服务器设置为 ns1.radicalteam.ir 和 ns2.radicalteam.ir 我可以访问 radicaalteam.ir 但无法访问 Soulati.ir。问题是什么?
这是我在 bind 中的配置:
/etc/named.conf:
options {
listen-on port 53 { 185.94.97.188;127.0.0.1; };
allow-query { any; };
Allow-transfer {"none";};
Allow-recursion {"none";};
Recursion no;
};
zone "server.radicalteam.ir" {
type master;
file "/var/named/server.radicalteam.ir.zone";
};
zone "radicalteam.ir" {
type master;
file "/var/named/radicalteam.ir.zone";
};
/var/named/server.radicalteam.ir.zone:
$TTL 1D
@ IN SOA ns1.radicalteam.ir. admin.radicalteam.ir. (
1 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
server.radicalteam.ir. IN NS ns1.radicalteam.ir.
server.radicalteam.ir. IN NS ns2.radicalteam.ir.
server.radicalteam.ir. IN A 185.94.97.188
server.radicalteam.ir. IN MX 0 server.radicalteam.ir.
/var/named/radicalteam.ir.zone:
$TTL 1D
@ IN SOA ns1.radicalteam.ir. server.radicalteam.ir. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
radicalteam.ir. IN NS ns1.radicalteam.ir.
radicalteam.ir. IN NS ns2.radicalteam.ir.
radicalteam.ir. IN A 185.94.97.188
ns1 IN A 185.94.97.188
ns2 IN A 185.94.97.188
radicalteam.ir. IN MX 0 radicalteam.ir.
www IN CNAME radicalteam.ir.
nslookup -debugradicalteam.ir
Server: 127.0.1.1
Address: 127.0.1.1#53
------------
QUESTIONS:
radicalteam.ir, type = A, class = IN
ANSWERS:
-> radicalteam.ir
internet address = 185.94.97.188
ttl = 86400
AUTHORITY RECORDS:
-> radicalteam.ir
nameserver = ns2.radicalteam.ir.
ttl = 1290
-> radicalteam.ir
nameserver = ns1.radicalteam.ir.
ttl = 1290
ADDITIONAL RECORDS:
-> ns1.radicalteam.ir
internet address = 185.94.97.188
ttl = 1290
-> ns2.radicalteam.ir
internet address = 185.94.97.188
ttl = 56785
------------
Non-authoritative answer:
Name: radicalteam.ir
Address: 185.94.97.188
ping soulati.ir:
ping: unknown host soulati.ir
nslookup soulati.ir :
Server: 127.0.1.1
Address: 127.0.1.1#53
** server can't find soulati.ir: SERVFAIL
nslookup -debug soulati.ir
Server: 127.0.1.1
Address: 127.0.1.1#53
------------
QUESTIONS:
soulati.ir, type = A, class = IN
ANSWERS:
AUTHORITY RECORDS:
ADDITIONAL RECORDS:
------------
** server can't find soulati.ir: SERVFAIL
答案1
ns1.radicalteam.ir
和都ns2.radicalteam.ir
解析为同一个地址,185.94.97.188
如果这些应该是你的“名称服务器”,这本身就是一个坏主意。s“。
至于soulati.ir
(委托给上述“名称服务器s"),185.94.97.188
以状态进行响应REFUSED
,大概是因为您没有配置这样的区域。(如果问题中包含的配置是完整的配置,则可以确认这一点。)