Using ddclient in Linux to bind Dynamic IP addresses to top-level domain names for free (non-cname method)

Source: Internet
Author: User

1. First download ddclient
[Url] https://www.dyndns.com/download/clients/unix/ddclient.tar.gz#/url]
2.decompress ddclient.tar.gz
3. Copy the ddclient file to/usr/sbin/
# Cp ddclient/usr/sbin/
4. Create the/etc/ddclient directory
# Mkdir/etc/ddclient
5. Copy the sample-etc_ddclient.conf file to/etc/ddclient/and rename it ddclient. conf
# Cp sample-etc_ddclient.conf/etc/ddclient. conf
6. Edit ddclient. conf (the most important step)
Dyndns mainly supports dyndns.org hn.org zoneedit.com easydns.com dnspark.com orgdns.org dslreports. com namecheap.com, where zoneedit can be bound to top-level domain names and is free of charge. (There are several other items that are free of charge. I have not tried them. Please SEARCH FOR THE zoneedit usage by yourself .)

# Use = web, Web = checkip.dyndns.org/, web-Skip = 'IP address' # found after IP Address

# Server = www.zoneedit.com ,/
# Protocol = zoneedit1 ,/
# Login = Your-zoneedit-login ,/
# Password = Your-zoneedit-Password/
# Your. Any. domain, your-2nd.any.dom

Is
# Use = web, Web = checkip.dyndns.org/, web-Skip = 'IP address' # found after IP Address
Use = web, Web = www.ip138.com/, web-Skip = 'your IP address is: '# found after IP Address

Server = www.zoneedit.com ,/
Protocol = zoneedit1 ,/
Login = your username in zoneedit ,/
Password = PASSWORD/
Your. Any. domain, your-2nd.any.dom (domain name to be updated)

I think using use = web is the simplest and most convenient. Both the Internet and Intranet have public IP addresses. what's better for ADSL Router users is, the program connects to [url] www.ip138.com [/url] at intervals to ensure that the ADSL connection is continuously enabled (because the ADSL Router will automatically stop the connection after a period of time without traffic ). The only drawback is that if [url] www.ip138.com [/url] is down, your website will also be down. Haha, but I haven't found it before using ip138.com. There are also several ways to get the IP address, such as getting the NIC address, getting the firewall address, and getting the router address. You can try it yourself.

7. Copy the sample-etc_rc.d_init.d_ddclient file to/etc/rc. d/and rename it ddclient
# Cp sample-etc_rc.d_init.d_ddclient/etc/rc. d/init. d/ddclient
8. edit/etc/rc. d/rc. Local and add the following line:
/Etc/rc. d/init. d/ddclient start
9. manually update once
#/Etc/rc. d/init. d/ddclient start

Automatic updates will be available later

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.