I don't know where the problem is when configuring dns. Please refer to "Linux Enterprise Application-Linux server application" for details. My dns configuration failed for the first time. See my configuration files below.
File named. conf
// 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;
};
//
// A caching only nameserver config
//
Controls {
Inet 127.0.0.1 allow {localhost;} keys {rndckey ;};
};
Zone "." IN {
Type hint;
Ile "named. ca ";
};
Zone "localhost" IN {
Type master;
File "localhost. zone ";
Allow-update {none ;};
};
Zone "0.0.127.in-addr. arpa" IN {
Type master;
File "named. local ";
Allow-update {none ;};
};
Zone "sundyhuang.com" IN {
Type master;
File "sundyhuang.com. db ";
Allow-update {none ;};
};
Zone "40.9.10.in-addr. arpa" IN {
Type master;
File "db.10.9.40.50 ";
Allow-update {none ;};
};
Include "/etc/rndc. key ";
File sundyhuang.com. db
$ TTL86400
@ In soa www.sundyhuang.com. sundyhuang.com .(
2007032801; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns www.sundyhuanng.com.
Localhost in a 127.0.0.1
Www. in a 10.9.40.50
File db.10.9.40.50
$ TTL86400
@ In soa www.sundyhuang.com. sundyhuang.com .(
2007032801; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns www.sundyhuang.com.
10.9.40.50 in ptr www.sundyhuang.com.
File hosts
# Do not remove the following line, or various programs
# That require network functionality will fail.
127.0.0.1localhost.localdomainlocalhost
10.9.40.50jyhuang.sundyhuang.comjyhuang
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.