如何让google domains DynamicDNS为Raspberry pi3更新ipv4而不是ipv6

如何让google domains DynamicDNS为Raspberry pi3更新ipv4而不是ipv6,dns,raspberry-pi,webserver,google-domain-api,Dns,Raspberry Pi,Webserver,Google Domain Api,我试图在我的Raspberry Pi3上安装个人Web服务器,我从Google Domains购买了域名,这样我就可以使用动态DNS让Google更新我的Raspberry Pi Web服务器的IP地址(因为我的ISP提供动态IP) 在我的Raspberry Pi上,我使用crontab进行定期更新,方法是使用google推荐的wget命令。这是我用来完成DNS更新的“语法”(如谷歌所建议的): wgethttps://username:password@domains.google.com/n

我试图在我的Raspberry Pi3上安装个人Web服务器,我从Google Domains购买了域名,这样我就可以使用动态DNS让Google更新我的Raspberry Pi Web服务器的IP地址(因为我的ISP提供动态IP)

在我的Raspberry Pi上,我使用crontab进行定期更新,方法是使用google推荐的wget命令。这是我用来完成DNS更新的“语法”(如谷歌所建议的):
wgethttps://username:password@domains.google.com/nic/update?hostname=subdomain.yourdomain.com

问题 谷歌沟通良好,并更新了我的IP,但它提出了IPv6而不是我的Raspberry Pi的IPv4地址

问题:我应该对Pi进行哪些更改,以便google使用我的公共IPv4地址而不是IPv6更新自己。请注意,我是一个初学者,所以请提供我可以轻松遵循的步骤


非常感谢你

-4
添加到
wget
的参数中。Google Domains使用您请求的源IP更新动态DNS合成记录(如Google服务器所示)。因此,您需要强制
wget
通过IPv4发出此请求,
-4
参数就是这样做的