📄 named-conf.txt
字号:
// generated by named-bootconf.pl
options {
directory "/var/named/";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};定义DNS配置文件的工作目录
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};提供rndc命令使用
// a caching only nameserver config
zone "." IN {
type hint;
file "named.ca";
};定义缓存文件,用于根区域的声明
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};本地子域正向解析区域的声明
zone "test.xian.com" IN {
type master;
file "test.xian.com";
};域正向解析区域的声明
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};本地子域反向解析区域的声明
zone "10.168.192.in-addr.arpa" IN {
type master;
file "192.168.10.rev";
};域反向解析区域的声明
include "/etc/rndc.key";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -