hhl*_*hlp 5 dns ddclient opendns
我想为 OpenDNS 配置 IP 更新程序。
我不是在问如何在我的/etc/resolv.conf
.
小智 5
非常好。但是,按照上面的提示,我会出现错误:“警告:无法确定 IP 地址”。要解决此错误,只需删除文件选项中的空格即可。
并获得 IP 更好的网站:myip.dnsomatic.com
见下文:
sudo nano /etc/ddclient.conf
Run Code Online (Sandbox Code Playgroud)
# #
# # OpenDNS.com account-configuration
# #
ssl=yes
use=web, web=myip.dnsomatic.com
server=updates.opendns.com
protocol=dyndns2
login=username in OpenDNS <-----
password='key OpenDNS' <----- CHANGE THIS
(Name of the network you set up in OpenDNS) <-----
Run Code Online (Sandbox Code Playgroud)
使用命令测试是否一切正常:
sudo ddclient -verbose -file /etc/ddclient.conf
Run Code Online (Sandbox Code Playgroud)
经过一番研究后我可以配置它:
安装ddclient:
ddclient是一个基于 Perl 的客户端,用于更新 DNS 条目。该客户使用我们的所有服务以及我们许多竞争对手提供的服务。
sudo apt-get install ddclient
当它开始询问参数时,只需单击“下一步”和“下一步”...
现在我们必须配置 2 个文件,打开终端并输入以下内容:
sudo nano /etc/default/ddclient
Run Code Online (Sandbox Code Playgroud)
# Configuration for ddclient scripts
# Generated from debconf on Mon Aug 2 12:39:39 CEST 2010
#
# /Etc/default/ddclient
# Set to "true" if ddclient run Should Be Every time a new ppp connection is
# Established. This Might Be Useful, if You are using dial-on-demand.
run_ipup = "false"
# Set to "true" if ddclient Should run in daemon mode
# If tis is changed to true, run_ipup Must Be Set to false.
run_daemon = "true"
# Set the time interval Between the updates of the dynamic DNS name in seconds.
# This option only Takes effect if the ddclient runs in daemon mode.
daemon_interval = "300"
Run Code Online (Sandbox Code Playgroud)
现在与另一个:
sudo nano /etc/ddclient.conf
Run Code Online (Sandbox Code Playgroud)
# #
# # OpenDNS.com account-configuration
# #
ssl = yes
use = web, web = whatismyip.org
server = updates.opendns.com
protocol = dyndns2
login = username in OpenDNS <-----
password = 'key OpenDNS' <----- CHANGE THIS
(Name of the network you set up in OpenDNS) <-----
Run Code Online (Sandbox Code Playgroud)
并按照 JE2Tom 在他的帖子中描述的方式配置您的 DNS。
归档时间: |
|
查看次数: |
13949 次 |
最近记录: |