linux named dns中继,菜鸟linux DNS搭建问题,请指教

下面是相关配置文件内容,ip为192.168.247.168

[root@localhost named]#

[root@localhost named]#

[root@localhost named]# cat /etc/resolv.conf

# Generated by NetworkManager

domain localdomain

search localdomain

nameserver 192.168.247.168

[root@localhost named]# cat /etc/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 { any; };

listen-on-v6 port 53 { any; };

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; };

recursion yes;

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";

};

include "/etc/named.rfc1912.zones";

include "/etc/named.root.key";

[root@localhost named]# cat /etc/named.rfc1912.zones

// named.rfc1912.zones:

//

// Provided by Red Hat caching-nameserver package

//

// ISC BIND named zone configuration for zones recommended by

// RFC 1912 section 4.1 : localhost TLDs and address zones

// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt

// (c)2007 R W Franks

//

// See /usr/share/doc/bind*/sample/ for example named configuration files.

//

zone "localhost.localdomain" IN {

type master;

file "named.localhost";

allow-update { none; };

};

zone "test.com" IN {

type master;

file "test.com.zone";

allow-update{ none; };

};

zone "localhost" IN {

type master;

file "named.localhost";

allow-update { none; };

};

zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {

type master;

file "named.loopback";

allow-update { none; };

};

zone "1.0.0.127.in-addr.arpa" IN {

type master;

file "named.loopback";

allow-update { none; };

};

zone "0.in-addr.arpa" IN {

type master;

file "named.empty";

allow-update { none; };

};

[root@localhost named]# cat /var/named/chroot/var/named/test.com.zone

$TTL 1D

test.com.       IN SOA  xu.test.com.    root.test. (

0       ; serial

1D      ; refresh

1H      ; retry

1W      ; expire

3H )    ; minimum

test.com.       NS      xu.test.com.

xu.test.com.    A       192.168.247.168

www.test.com    A       192.168.247.168

AAAA    ::1

[root@localhost named]# service named restart

Stopping named: .umount: /var/named/chroot/var/named: device is busy.

(In some cases useful info about processes that use

the device is found by lsof(8) or fuser(1))

[  OK  ]

Starting named:                                            [  OK  ]

[root@localhost named]# nslookup www.test.com

;; connection timed out; trying next origin

;; connection timed out; no servers could be reached

[root@localhost named]#

[root@localhost named]#

DNS启动没问题,但是无法解析;; connection timed out; trying next origin  ;;connection timed out; no servers could be reached

分享至:

90ed4b13fe016cebd9fe3df2ae3a899b.gif

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:游动-白 设计师:我叫白小胖 返回首页
评论
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值