Configure DSN details-general Linux technology-Linux technology and application information. For more information, see. [Root @ localhost root] # vi/etc/named. conf ------ DNS master configuration file
// Generated by named-bootconf.pl
Options {------ global definition (Global Setting option, macro definition, can be considered as Constitution)
Directory "/var/named"; ------ define the directory of the server region configuration file as/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;
};
//
// A caching only nameserver config
//
Controls {----- control definition, which can be understood as a special explanation of special issues, for example, the definition of the computer network security law
Inet 127.0.0.1 allow {localhost;} keys {rndckey;}; --- when the client initiates a request to the server (that is, the request to port 53 of the server ), it will trigger the server's named process. It is equivalent to entering a command in the shell environment. Then, through the 127.0.0.1 channel and port 953, get a rndckey (/etc/rndc. to access the database under/var/named.
};
Zone "." IN {----- zone definition (Region definition, partial definition, can be understood as the local method) IN: indicates that the network type is internet.
Type hint; ----- type is the root prompt, that is, the DNS boss, hint authoritative, top-level, implicit
File "named. ca"; ----- root cache database, root prompt, tell the DNS boss who is used to store the FQDN of 13 root servers and the corresponding IP Address
};
Zone "localhost" IN {
Type master; ---- indicates that the DNS type is primary DNS, and Slave secondary DNS
File "localhost. zone"; ---- name of the local forward database file, IP-domain name. Q: Do you know where this file is stored?
Allow-update {none ;}; ---- whether to allow this DNS to update to other DNS, none is not allowed here
};
Zone "0.0.127.in-addr. arpa" IN {---- the syntax is defined by arpa. The arpa network is the ancestor of the Internet! For example, the IP address range of 192.168.101.0 is 101.168.192.in-addr. arpa.
Type master; ---- indicates that the DNS type is secondary DNS.
File "named. local"; ---- name of the local reverse database file, domain name-IP.
Allow-update {none ;};
};
Zone "163.com" IN {----- custom region 163.com
Type master;
File "163.com ";
Allow-update {none ;};
};
Zone "11.168.192.in-addr. arpa" IN {
Type master;
File "192.168.11.rev ";
Allow-update {none ;};
};
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.