Continued asp.net domain name development-generic domain name resolution

Source: Internet
Author: User
Tags net domain

Preface:

A long time ago, I published an article titled asp.net domain name development.

Many new humans have expressed their disdain for this article and feel that it is too basic. They will understand it early and understand it. After all, there are still people who have not yet understood it.

I will continue with this article today to explain the advanced development of domain name resolution and the development of pan-Resolution Methods:If you find this article helpful, please recommend it with enthusiasm

 

Pan-resolution usage: it is commonly used in blogs. You can see it in the blog garden.

For http://cyq1162.cnblogs.com
Or http://www.cnlogs.com/cyq1162.
All users are accessing the same user, and * .cnblogs.com is resolved to the same IP address.

 

Wildcard DNS development:

To simulate multiple users and perform development tests such as URL redirection and user name truncation, this hierarchical development method is superior.

 

How?

 

Method 1: Modify the host

 

In the last successful asp.net domain name development, we modified the host file to implement domain name spoofing.

 

However, for second-level domain names, we can only resolve them one by one:

# Host file
192.168.1.2 www.cnblogs.com
192.168.1.2 cyq1_2.cnblogs.com
192.168.1.2 aaa.cnblogs.com
192.168.1.2 bbb.cnblogs.com
......

 

Note:

If you want to repeat it one by one, no one will stop you, but for each newly registered user, when you perform a test, you have to add a host parsing line.

 

Question:Can I change the Domain Name of the host file to * .cnblogs.com to implement Pan resolution spoofing? The answer is no!

 

Therefore, we need another solution to implement Generic DNS development. What we welcome is:

 

Method 2: DNS resolution [I will not explain that much about DNS. For details, refer to Google]

 

Simple implementation steps [demonstrate the wildcard DNS blog]:

1: Install [the installation method is similar to that of iis. Only the server system can be installed, so do not try xp]

2: Configure domain name DNS,

 

A: Open DNS from the management tool

 

B: Right-click to create a region.

 

C: Go to the next step.

 

D: Enter the domain name.

 

E: Go to the next step.

 

F: Go to the next step.

 

G: done directly

 

H: The region is created. Right-click to create a host.

 

I: Enter *, point to the local IP address, and click Add host.

 

OK. Now the host is finished, but it generally does not take effect immediately. [I don't know how to ping other tutorials on the Internet, but what are you doing?]

There are two steps to be noted after a speculative analysis.

1: The default DNS requires the IP address of the cost server.

2: The refresh time for the DNS to take effect. The default value is 15 minutes. Change it. If you don't change it, wait. For example

 

Finally, everything is ready. Ping the blog.

 

Statement:

So far, the entire wildcard resolution has been completed, and now we can continue to develop it in the form of domain name spoofing.

Are VS and IIS configurations not set yet? Let's look back: asp.net domain name hosted development This article still writes a lot of foundation, it is the DNS configuration, but the configuration VS + IIS combined development, it is just a little forward. As for those who have understood it earlier, they can understand it. Some people still don't understand it.

 

 

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.