Current location - Recipe Complete Network - Complete recipe book - How to bind a domain name to your host?
How to bind a domain name to your host?
Home personal computer Internet IP are not static, as long as we restart the "cat" or router our IP will change, here we need a dynamic domain name resolver, he can get our current computer's external IP and the domain name we set up automatically bound to this IP, no matter how the IP changes, our domain name can be resolved at any time. No matter how the IP changes, our domain name can be resolved at any time. This way we can publish websites from our own computers.

Let your personal computer become a server:

Take the "peanut shells" dynamic domain name resolver as an example

1.peanut shells download and install:

2.apply for registration of peanut shells user and login to the software.

And login to the peanut shells website to manage domain names

You can register a new domain name in the peanut shells website and resolve it, or you can convert the domain name DNS resolver to peanut shells, or you can domain name Convert the registrar to peanut shells, or you can apply for a free second-level domain name in peanut shells.

3. Refresh the peanut shells software on the computer

There is a colorful small square in front of the domain name is successfully resolved to the IP

(domain name IP address pointing to the same IP and peanut shells client IP shows that the DDNS dynamic resolution client settings are correct)

The rest of the problem is that we have the local IIS and the router problem.

4. Open "Control Panel" - "Administrative Tools" - "Internet Information Services (IIS) Manager"

5. Right-click on "Web Sites" and then "Add Web Site"

The name of the web site should be something meaningful: My Web Site

Physical Path: point to the root directory of the web site program

Make sure that the web site is accessible from outside with sufficient privileges. permissions to access it from the outside. The specific details of configuring and installing the site will not be explained.

When the website is released successfully, if you are a "cat" dial-up user, you can directly access the domain name on the Internet; if you are a router user, you need to set up port mapping.

Note: This method is only used for personal experience in the establishment of the site, personal computers can not be on 24 hours a day, unless you buy a computer with a strong server configuration, due to personal bandwidth limitations of other people to access the site will be very slow.