Dynamic domain name updates automatically run when ubuntu is started

Source: Internet
Author: User
To enable dynamic domain name update when Ubuntu is automatically started, find the setting method on the Internet. you can use the sysn-rc-conf command to set the automatic running program. originally thought it could be implemented, but after running it, it found that it can only set the existing startup items (the existing ones should be corresponding to init. d ). however, this setting tool is very intuitive and easy to use. the search continues. Two methods are found. one is to directly rewrite the rc of/etc. local file, add the startup Item in it, but some release versions of lin

To enable dynamic domain name update when Ubuntu is automatically started, find the setting method on the Internet. you can use the sysn-rc-conf command to set the automatic running program. originally thought it could be implemented, but after running it, it found that it can only set the existing startup items (the existing ones should be corresponding to init. d ). however, this setting tool is very intuitive and easy to use.

The search continues. Two methods are found. one is to directly rewrite the rc of/etc. add the startup item to the local file, but some versions of linux may not execute this configuration file, and the other is directly in/etc/init. d. Create a self-starting script, create a link under the RC directory of each level, and set the corresponding file name.

I am a lazy. I chose to modify the rc. local file, insert a row before exit, and add

W3m-no-cookie-dump http: // username: password@members.3322.org/dyndns/update? System = dyndns & hostname = yourdomain.3322.org

After saving and restarting the machine, ping my domain name. The strange ip address is incorrect. Can it work after it is started? Therefore, manually enter the preceding command in the terminal and the result shows no host. it seems that there is a problem with this command. After searching for half a day, I did not find the cause, when I was preparing to install other dynamic domain name tools, I suddenly found that the url followed by w3m on a post was enclosed by quotation marks, while many other materials did not. So I added quotation marks according to the quotation marks, succeeded. modify rc. local and press the quotation mark to restart... if the domain name is successfully pinged, my current ip address is returned.

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.