Linux uses bind to deploy intelligent DNS

Source: Internet
Author: User

In fact, really is mastered, telecom or Netcom's routing table is can do intelligent DNS

Last time it was loaded, bind 9.6.1.

Let's go straight: vi/etc/named.conf

Key "Rndc-key" {
Algorithm HMAC-MD5;
Secret "jdw02/wylwu8amtidpn+wg==";
};

Controls {
inet 127.0.0.1 Port 953
Allow {127.0.0.1;} keys {"Rndc-key";};
};

Options {
Directory "/usr/local/named/var/named";
Pid-file "Named.pid";
Listen-on Port: (any;};
allow-query {any;};
Dump-file "/usr/local/named/data/cache_dump.db";
Statistics-file "/usr/local/named/data/named_stats.txt";
};

ACL "Telcom_acl" {
127.0.0.1; 116.27.64.128/25; 121.12.250.0/24;
};

ACL "Cnc_acl" {
61.142.208.0/24;121.9.244.0/24;
};
View "Telcom" {
match-clients {telcom_acl;};
recursion Yes;

Zone "." In {
Type hint;
File "Named.root";
};

Zone "localhost" in {
Type master;
File "Localhost.zone";
};

Zone "0.0.127.in-addr.arpa" in {
Type master;
File "Localhost.rev";
};

Zone "Samly71.com" in {
Type master;
File "Samly71.com.zone";
allow-update {none;};
};

Zone "128.64.28.116.in-addr.arpa" in {
Type master;
File "116.28.64.128.ip-addr.arpa.zone";
allow-update {none;};
};
};

View "CNC" {
match-clients {cnc_acl;};
Recursion No;

Zone "." in {
Type hint;
File "Named.root";
} ;

Zone "Samly71.com" {
Type master;
File "Samly71.com.cnc.zone";
allow-update {none;};
};
} ;

So the VI is finished named.conf,

/usr/local/named/sbin/named-gc/usr/local/named/etc/named.conf verified the next Luo, no problem. Ha ha.

/usr/local/named/sbin/named-gc/usr/local/named/etc/named.conf Start named

Cd/var/named

Ls

You can see

116.27.64.128.ip-addr.arpa.zone localhost.rev localhost.zone named.pid named.root samly71.com.cnc.zone samly71.com.z One

These files

VI Samly71.com.cnc.zone put this a record ah, change to your netcom address

$TTL 3488660
@ in SOA samly71.com. Samly71.com. (
1053891162
3H
15M
1W
1D)
@ in NS localhost.
In MX ten mail.samly71.com.
Mail in A 192.168.100.1
www in A 192.168.100.1
DNS in A 192.168.100.1
. In A 192.168.100.2

That's OK.

Restart the named, please.

Verify it.


This article is from the "samly" blog, make sure to keep this source http://323248.blog.51cto.com/313248/1835000

Linux uses bind to deploy intelligent DNS

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.