动态 DNS 未被拾取

dynamic dns not being picked up

我正在尝试 link 我本地机器上的一个页面 运行 到我保留的域名,但它似乎没有被提取。

我已经在 ubuntu 18.04 机器上安装了 nginx。我有一个简单的 hello world 教程文件夹,其中包含以下 conf 设置:

server {
       listen 81;
       listen [::]:81;

       server_name api.<my_domain>.net;

       root /var/www/tutorial;
       index index.html;

       location / {
               try_files $uri $uri/ =404;
       }
}

我通过托管服务提供商启用了动态 DNS。然后我使用 ddclient 生成了以下设置,在此处输入托管服务提供商在第 2 步中提供的数据:https://www.strato-hosting.co.uk/faq/webshop/this-is-how-easy-it-is-to-set-up-dyndns-for-your-domains/

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

protocol=dyndns2
use=web
server=https://dyndns.strato.com/nic/update
login=<my_username>
password='<my_dyndns_password>'
api.<my_domain>.net

我也将 dhcp 客户端编辑为 true:

# Configuration for ddclient scripts 
# generated from debconf on zo  9 jan 2022 21:20:14 CET
#
# /etc/default/ddclient

# Set to "true" if ddclient should be run every time DHCP client ('dhclient'
# from package isc-dhcp-client) updates the systems IP address.
run_dhclient="true"

# Set to "true" if ddclient should be run 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 this is changed to true, run_ipup and run_dhclient 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"

如果我在另一台笔记本电脑上尝试以下操作,我会得到这些结果:

我觉得我缺少一些简单的配置设置来连接最后一个点。

它抛出了错误,因为我没有将 api.<my_domain>.net 添加为我的托管服务提供商的子域。完成后,我可以从外部浏览器访问 api.<my_domain>.net:81