Communication between windowsDNS and linuxDNS

Source: Internet
Author: User
WindowsDNS communicates with linuxDNS-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. linux as the primary DNS, windows as the secondary DNS

1. Configure linux as the primary dns server as follows:

A: Configure/etc/named. conf to create the forward resolution region of benet.com.

B: Create the forward resolution library file named. benet under/var/named.

C: Start the named service and disable the linux firewall.

2. Install windows 2003 server and create DNS. The configuration is as follows:

A: Create A new region, benet.com, as the secondary DNS. The master server ADDRESS is linux dns ip address.

B: After the region is created, you can see the forward resolution record of the linux DNS.

C: If you want to update a new record on a linux server, you need to add the SOA serial so that windows DNS can continue to learn.

D: restart the windows DNS service and select "copy from master server" in the region to update the database resolution file.

Ii. Use windows as the primary DNS and linux as the secondary DNS

1. Configure DNS in windows:

A: Create A primary DNS under windows DNS and set up A forward resolution region benet.com.

B: In the benet.com region, create a forward database file and Host record (CNAME, MX)

C: The default SOA serial of windows DNS is 1. In order to enable linux to update the resolution library file, the default serial of linux is 42, so change windows to 43.

D: In the region attribute of benet.com, select "region copy-Allow region copy-to all servers" and save

E: restart DNS. configuration is complete.

2. Configure linux DNS:

A: Configure/etc/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;

File "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 "benet.com" IN {

Type slave;

File "benet.com. dns"; // This file name is the default dns configuration file name for windows, which can be set at Will (such as named. benet)

Masters {192.168.0.187 ;}; // 192.168.0.187 is a windows DNS Server.

# Allow-update {none ;};
};

Include "/etc/rndc. key ";

B: After the configuration is complete, restart the named service.

C: The test.com. dns file can be found under/var/named.

D: Open benet.com. dns to view host records in windows.

Note:

A: You can view log records in Event Viewer in windows and/var/log/messages in linux.

B: The configuration file for windows DNS is under system32/dns.
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.