Open Domain Binding DDNS

Source: Internet
Author: User

First, the original intention

I want to have my own domain name, and then have my own server, set up a website on the server or open an FTP service,
I want to access it through this domain name.

Second, what is DDNS

DDNS Dynamic DNS, Telecom broadband using Dial-Up Networking mode, router or light cat after each dial is dynamic acquisition of IP address.
That is, the operator does not have a separate static IP address for you.

At this time, if you want to be able to access your LAN's computer or service through the public network, you need to know the IP of the corresponding public network,
And this IP is not stable, so you can through the DDNS service, just remember the domain name can be. As for IP address-to-DNS bindings,
is done by the service provided by the peanut shell.

Third, the realization

1. Registering a domain name
Register a domain name on the peanut shell and open the peanut shell service.
2. Local computer (Linux) executes a script to update DNS-to-IP mappings

 1  #!/bin/bash  2  domain= www.abc.com   " 3  username="  example   4  Password= " mypassword  "  5 /usr/bin/curl  http://$username: [ Email protected]/ph/update?hostname= $domain   

3. Add to Cron (CRONTAB-E) and execute the script every 5 minutes.
*/5 * * * * SH ~/bin/refresh-ddns.sh

Four, small tools

1. See if a website has a certain port open
Webmaster tools → Port scan: http://tool.chinaz.com/port/
2. Oray Management Center: https://console.oray.com/account/message/
3. Peanut Shell Management: https://b.oray.com/domain/

Reference:
1. http://cmdschool.blog.51cto.com/2420395/1703233

Open Domain Binding DDNS

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.