noip2 is a dynamic update client for No-IP to keep your current IP address synchronized with your No-IP domain, no matter whether the IP is dynamically requested via DHCP or static assigned. Furthermore, with the domain name, we can host site using a “static” domain whose CNAME points to the No-IP domain.
noip2是No-IP的动态更新客户端,无论您是通过DHCP动态请求IP还是通过静态分配IP,它都能使您当前的IP地址与您的No-IP域保持同步。 此外,使用域名,我们可以使用“ CNAME”指向No-IP域的“静态”域托管站点。
noip2 is a open source package on Linux. Let’s see how to set up and configure it. This tutorial uses Fedora as the example.
noip2是Linux上的一个开源软件包。 让我们看看如何设置和配置它。 本教程以Fedora为例。
Install the package
安装套件
# yum install noip
Configure it for the first time
首次配置
# noip2 -C
It will asks for the account/password information and asks for the domains to sync, just select and input the appropriate information here.
它将要求提供帐户/密码信息,并要求域进行同步,只需在此处选择并输入适当的信息即可。
Configure noip to run automatically as a service
将noip配置为自动作为服务运行
# chkconfig noip on
Then you can start it
那你就可以开始了
# service noip start
You can configure it to run as normal users if the IP is get via NetworkManager after user logging in.
如果用户登录后通过NetworkManager获得IP,则可以将其配置为以普通用户身份运行。
After the configuration, try to ping your No-IP domain and it should point to your public IP now.
配置完成后,尝试对您的No-IP域执行ping操作,它现在应指向您的公共IP。
To make noip2 service automatically update with your latest IP, add a crontab
entry for root:
要使noip2服务自动使用您的最新IP更新,请为root添加一个crontab
条目:
*/30 * * * * /sbin/service noip restart
The noip2 service will be restarted every 30 minutes. When the service is restarted, it will check your latest IP address and update the DNS record with no-ip.com .
noip2服务将每30分钟重新启动一次。 重新启动服务后,它将检查您的最新IP地址并使用no-ip.com更新DNS记录。
翻译自: https://www.systutorials.com/how-to-install-noip2-on-linux/