Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

0037-how to set up DNS service and configure pan-domain name resolution in Windows Server2008

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Warm Tip: to see the high-definition no-code picture, please open it with your mobile phone and click the picture to enlarge.

1. Purpose of document writing

With the DNS service, for the hostname and ip of all nodes in a CDH cluster, you no longer need to manually maintain the hosts files for each node. In addition, DNS services can also help with the installation or integration of Kerberos,OpenLDAP,AD on CDH, and the DNS server is required for CDH's new product, CDSW (Cloudera Data Science Workbench). This document focuses on how to set up a private DNS server on Windows Server2008 R2 and configure pan-domain name resolution.

Content Overview

1. Install DNS Server

two。 Configure domain name resolution

3.DNS test

Test environment

1.Window Server2008 R2

2.RedHat7.2

two。 Install DNS Server

1. Open Server Manager

two。 Select "Roles" and click "Add Roles"

3. Click "Next" to select the DNS service

4. Click "Next"

5. Click "Install"

6. Installation succeeded

3. Configure domain name resolution

3.1 create a forward parsing Zone

1. Add a new Zone

two。 Click "Next" and select "Primary zone"

3. Click "Next" and enter Zone Name

4. Click "Next"

5. Click "Next"

6. Click "Finish"

3.2 add reverse parsing Zone

1. Create a reverse parsing Zone

two。 Click "Next" and select "Primary zone"

3. Click "Next" and select "IPv4"

4. Click "Next" and enter Network ID

5. Click "Next" to create a reverse parsing file

6. Click "Next" and select the Dynamic Update update method

7. Click "Finish" to complete the creation of reverse parsing Zone

3.3 configure forward resolution

1. Select 3.1 newly created Zone

two。 Create "New Host"

3. Enter the Name and IP address of Host

Note: what is added here is the domain name resolution of the DNS Server server. The Name is the same as the hostname of the Window Server server.

4. Click "Add Host" to finish adding

Checking "Create associated pointer (PTR) record" when adding forward parsing will automatically create reverse parsing.

3.4 pan-domain name resolution configuration

Here, take the RedHat server (172.31.22.86) as an example to create pan-domain name resolution for this server.

Pan-domain name resolution configuration can be implemented in two ways: modify the configuration file or configure it through the interface.

Modify the configuration file mode

Modify the fayson.com configuration file in C:\ Windows\ System32\ dns directory

Add the following configuration to the configuration file and save it

* .cdh01 A 172.31.22.86

You can see a directory with an extra cdh01 in the fayson.com space.

Interface configuration mode

Create a Domain in the space of fayson.com

Add Domain

Create two Host under the cdh01 directory

The creation completion is shown as follows:

4.DNS test

4.1Window test

1. Configure DNS server address under Window

two。 Use the nslookup command to test in the CMD window

Forward analytical test

C:\ Users\ Administrator > nslookup 172.31.5.137Server: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137Name: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137

Direction analysis test

C:\ Users\ Administrator > nslookup win-6kkuqil51ne.fayson.comServer: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137Name: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137

3. Test cdh01

Forward analytical test

C:\ Users\ Administrator > nslookup 172.31.22.86Server: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137Name: * .cdh01.fayson.comAddress: 172.31.22.86

Reverse parsing

C:\ Users\ Administrator > nslookup cdh01.fayson.comServer: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137Name: cdh01.fayson.comAddress: 172.31.22.86

Pan-domain name resolution

C:\ Users\ Administrator > nslookup qq.cdh01.fayson.comServer: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137Name: qq.cdh01.fayson.comAddress: 172.31.22.86

4.2Linux test

1. Modify the server's DNS Server

Add the DNS server address by modifying the configuration file of the corresponding network card in the / etc/sysconfig/network-script directory

[ec2-user@ip-172-31-22-86] $sudo vim / etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE= "eth0" BOOTPROTO= "dhcp" ONBOOT= "yes" TYPE= "Ethernet" USERCTL= "yes" PEERDNS= "yes" IPV6INIT= "no" DNS1=172.31.5.137

To modify the DNS, you need to restart the network

[ec2-user@ip-172-31-22-86] $sudo service network restartRestarting network (via systemctl): [OK] [ec2-user@ip-172-31-22-86] $

Check whether DNS is in effect.

[ec2-user@ip-172-31-22-86] $more / etc/resolv.conf # Generated by NetworkManager#search ap-southeast-1.compute.internal#nameserver 172.31.0.2search fayson.comnameserver 172.31.5.137

If it is consistent with the configured DNS Server IP address, it is in effect.

two。 Use the nslookup command to test during the command exercise

Forward parsing DNS Server

[ec2-user@ip-172-31-22-86] $nslookup 172.31.5.137Server: 172.31.5.137Address: 172.31.5.137#53137.5.31.172.in-addr.arpa name = win-6kkuqil51ne.fayson.com. [ec2-user@ip-172-31-22-86] $

Reverse parsing DNS Server

[ec2-user@ip-172-31-22-86] $nslookup win-6kkuqil51ne.fayson.comServer: 172.31.5.137Address: 172.31.5.137#53Name: win-6kkuqil51ne.fayson.comAddress: 172.31.5.137 [ec2-user@ip-172-31-22-86] $

Forward parsing 172.31.22.86 test

[ec2-user@ip-172-31-22-86] $nslookup 172.31.22.86Server: 172.31.5.137Address: 172.31.5.137#5386.22.31.172.in-addr.arpa name = * .cdh01.fayson.com.86.22.31.172.in-addr.arpa name = cdh01.fayson.com. [ec2-user@ip-172-31-22-86] $

Reverse parsing cdh01.fayson.com

[ec2-user@ip-172-31-22-86] $nslookup cdh01.fayson.comServer: 172.31.5.137Address: 172.31.5.137#53Name: cdh01.fayson.comAddress: 172.31.22.86 [ec2-user@ip-172-31-22-86] $

Pan-domain name resolution test xxx.cdh01.fayson.com

[ec2-user@ip-172-31-22-86] $nslookup xxx.cdh01.fayson.comServer: 172.31.5.137Address: 172.31.5.137#53Name: xxx.cdh01.fayson.comAddress: 172.31.22.86 [ec2-user@ip-172-31-22-86] $

Drunken whips are famous horses, and teenagers are so pompous! Lingnan Huan Xisha, under the vomiting liquor store! The best friend refuses to let go, the flower of data play!

Warm Tip: to see the high-definition no-code picture, please open it with your mobile phone and click the picture to enlarge.

It is recommended to follow Hadoop practice, the first time, share more Hadoop practical information, welcome to forward and share.

Original article, welcome to reprint, reprint please indicate: reproduced from the official account of Wechat Hadoop

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report