我实际上是尝试设置DNS并为网络上本地的主机添加A记录。它看起来似乎有一些问题。
[root@vxctf8500 ~]# nslookup N8500
Server: 10.209.194.15
Address: 10.209.194.15#53
Non-authoritative answer:
*** Can't find N8500: No answer
遵循配置文件::
named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { 127.0.0.1;10.209.194.15; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query {any;};
allow-recursion {any;};
recursion no;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone"vxctf8500.com" IN {
type master;
file "forward.vxctf8500.com";
allow-update { none; };
};
zone"0.209.10.in-addr.arpa" IN {
type master;
file "reverse.vxctf8500.com";
allow-update { none; };
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
前进区::
$TTL 1D
@ IN SOA ns1.vxctf8500.com. root.vxctf8500.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS vxctf8500.com.
@ IN A 10.209.194.15
N8500 A 10.209.194.22
~
使用,将递归保持为YES,查询永远不会完成并产生网络错误。但是本地服务器解析
[root@vxctf8500 ~]# nslookup vxctf8500.com
Server: 10.209.194.15
Address: 10.209.194.15#53
Name: vxctf8500.com
Address: 10.209.194.15
[root@vxctf8500 ~]#
再次尝试追查::
$TTL 1D
@ IN SOA ns1.vxctf8500.com. root.vxctf8500.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS vxctf8500.com.
IN A 10.209.194.15
ns1.vxctf8500.com IN A 10.209.194.15
N8500 IN A 10.209.194.22
[root@vxctf8500 ~]# nslookup N8500
Server: 10.209.194.15
Address: 10.209.194.15#53
Non-authoritative answer:
*** Can't find N8500: No answer
[root@vxctf8500 ~]#
还要重启命名服务。
关于设置反向查找的任何线索::
$TTL 1D
@ IN SOA ns1.vxctf8500.com. root.vxctf8500.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
IN NS 10.209.194.15.
22 IN PTR nclusters.vxctf8500.com
23 IN PTR nclusters.vxctf8500.com
24 IN PTR nclusters.vxctf8500.com
25 IN PTR nclusters.vxctf8500.com
26 IN PTR nclusters.vxctf8500.com
答案 0 :(得分:0)
在前方区域 你需要写
(fully qualified domain ) IN A (ip address of domain)
================================================
IN SOA
ns1.vxctf8500.com. root.vxctf8500.com.
(
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS vxctf8500.com.
IN A 10.209.194.15
ns1.vxctf8500.com. IN A 10.209.194.15
N8500. IN A 10.209.194.22
:WQ!保存它