I don't know where the problem is when configuring dns. Please help me.

Source: Internet
Author: User
Tags nameserver
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 resolv. conf
Nameserver 202.96.128.86
Domain sundyhuang.com
Search 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


File network
NETWORKING = yes
HOSTNAME = jyhuang.sundyhuang.com


File ifcfg-eth1
DEVICE = eth1
BOOTPROTO = none
ONBOOT = yes
IPADDR = 10.9.40.50
NETMASK = 255.255.0.0
USERCTL = no
PEERDNS = no
GATEWAY = 10.9.40.100
TYPE = Ethernet
NETWORK = 10.9.0.0
BROADCAST = 10.9.0000255
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.