为 OpenDNS 配置 IP 更新程序

hhl*_*hlp 5 dns ddclient opendns

我想为 OpenDNS 配置 IP 更新程序。

  1. 我需要安装哪些软件包?
  2. 需要什么配置?

我不是在问如何在我的/etc/resolv.conf.

Tom*_*man 7

在家里设置它的正常方法是配置你的路由器来使用它。如何做到这一点因型号而异,但 OpenDNS 的基本支持页面在这里,这是一个很好的起点。

如果您仍然只想将您的 Ubuntu 机器配置为使用 OpenDNS,他们的操作方法在这里

祝你好运。


小智 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)


hhl*_*hlp 2

经过一番研究后我可以配置它:

  1. 在 OpenDns 中创建您的帐户。
  2. 安装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。