小编Fab*_*bio的帖子

“绑定”DNS 服务器并考虑“/etc/hosts”

在我的局域网中,我使用一台小型机器作为服务器/网关(使用 Ubuntu 10.04)。在此服务器上运行bind9 DNS 服务器,所有 LAN 客户端都将其用作唯一的 DNS。一切正常,除了我想找到一种方法来考虑服务器的 /etc/hosts文件。

例如,如果我的服务器/etc/hosts文件包含以下行:

192.168.10.5    testserver05.lan
Run Code Online (Sandbox Code Playgroud)

我想在bind 中反映答案。事实上,现在我没有找到错误:

root@nasinsu:/etc/bind# nslookup testserver05.lan
Server:     127.0.0.1
Address:    127.0.0.1#53

** server can't find testserver05.lan: NXDOMAIN
Run Code Online (Sandbox Code Playgroud)

这可能吗?

dns local bind

4
推荐指数
1
解决办法
9825
查看次数

标签 统计

bind ×1

dns ×1

local ×1