DNS for server configuration

Source: Internet
Author: User
Tags subdomain subdomain name

Winser2003-Based System

The DNS Server is a (Domain Name System or Domain Name Service) Domain Name System or Domain Name Service.

Simply put, the role of DNS is to resolve a domain name address such as www.baidu.com to 61.135.168.105.

It is to resolve the domain name to a specific IP address. In fact, we can directly enter the IP address to access the domain name, for example: http: // 61.135.169.105/

Set host file c: \ windows \ system32 \ drivers \ etc \ hosts or set DNS to resolve domain name to IP Address

If both are configured, the hosts file takes effect and the DNS configuration is invalid.

For example, configure

Www.baidu.com 127.0.0.1

At this time, www.baidu.com points to a local machine (127.0.0.1 refers to a local machine by default). Enter "Ping www.baidu.com" under "cmd --" to see the IP address 127.0.0.1.

Now we have a general understanding of DNS. During the LAN development process, our developers will access a server on the LAN. At this time, we need to install DNS on this server, all developers access this server and use this server DNS to resolve specific domain names. For example, if the IP address of this server is 192.168.101.109, we configure hosts to direct to this server.

Doc.mic.cn 192.168.101.109

In this case, enter doc.mic.cn in the browser to access the local area network server 192.168.101.109.

Open IIS on the LAN server, select site, right-click Properties, website --- advanced here, we set the corresponding domain name of 192.168.101.109 doc.mic.cn

So far, we have configured hosts in the LAN.

Doc.mic.cn 192.168.101.109,

Enter doc.mic.cn in the machine browser to access the site configured in IIS

If we want to achieve simple load balancing, we can use two servers to configure

Open IIS on the server, select site, right-click Properties, website --- advanced here, we set the corresponding domain name of 192.168.101.109 doc.mic.cn

After the configuration is completed, when other machines access doc.mic.cn, they will be allocated to the two servers for access.

Next, the DNS is installed.

Control Panel-Administrative Tools-Server Configuration Wizard, next, select the DNS server and install it gradually

After successful installation

Open Control Panel -- Administrative Tools -- find DNS and click Open

-- Forward lookup area. If you want to use doc.mic.cn, right-click the forward lookup area and choose create region. Next, enter the name mic.cn.

Create a host Doc in the blank space on the right. The complete domain name is doc.mic.cn.

Note: You must create a host name named empty and the complete domain name is mic.cn.

To create a subdomain name of mic.cn, click the domain name of mic.cn, right-click the domain name -- create a new domain, and enter ECP. Then, right-click the blank area on the right and select create host.

The domain name ecp.doc .mic.cn. Similarly, you must create a domain name that is empty and the complete domain name is doc.mic.cn.

, We can enter the IP address below to point to, for example, the IP address is 61.135.169.105. At this time, we will enter ecp.doc .mic.cn to access the URL www.baidu.com.

If 192.168.101.109 is entered, it is the server of the current LAN.

If you want to create a subdomain name in ecp.doc .mic.cn, click new domain name on this domain name and enter a name, such as Fe

At this time, fe.ecp.doc .mic.cn will be available in the blank area on the right.

Test.ecp.doc .mic.cn

The DNS configuration is complete.

We can easily access it in the LAN!

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.