更改域名指向的IP

发布于 2024-09-01 08:17:17 字数 359 浏览 1 评论 0原文

这可能是一个非常奇怪的要求。

我需要以编程方式(通过代码)更改域名指向的IP。

IE:xyz.com 指向 100.100.100.100

setIP('xyz.com','100.100.100.100');

我知道这个[代码]实际上是不可能的,但是,我需要的是通过域名主机 API 等或您可能想到的其他可能的方式来做到这一点。

即使只是向 DNS 所有者/主机发送电子邮件,我也会很高兴。

您知道类似的事情或可能有帮助的事情吗?

(注意:考虑过将其扔到 ServerFault 上,但在这里感觉更自在;))

干杯!

This is probably a very strange request.

I need to programmaticaly (via code) change the IP where a domain name is pointing to.

IE: xyz.com points to 100.100.100.100

setIP('xyz.com','100.100.100.100');

I know this [code] is practically impossible, however, what I need is to do this via domain host API etc or other possible ways you might think of.

I'd be happy even if it weren't anything more then sending an email to the DNS owner/host.

Do you know of anything the like or which might help?

(nb: considered throwing this at ServerFault, but felt it more at home here ;) )

Cheers!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

妖妓 2024-09-08 08:17:17

您正在寻找动态 DNS 提供商,例如 No-IPDynDNS

他们有 HTTP API 允许您更改 A 记录。

You're looking for a Dynamic DNS provider, such as No-IP or DynDNS.

They have HTTP APIs that allow you to change the A records.

少钕鈤記 2024-09-08 08:17:17

这实际上取决于设置、您从哪里进行设置以及出于什么原因?

我想您自己也没有运行 DNS 服务器或托管域,如果您是的话,那么这相对容易。

有关您试图使用什么技术实现的目标的更多信息将会有所帮助。

It really depends on the setup, where you are doing it from and for what reason?

I guess you are not running a DNS server yourself or hosting the(se) domains either, if you were then this is relatively easy.

More information on what you are trying to achieve using what technology would be helpful.

孤单情人 2024-09-08 08:17:17

有一个名为“WMI API”的 API 类,可用于使用代码/程序来管理您的内容。请尝试以下网址。

http://www.delphi3000.com/articles/article_4392.asp

There is an API class called "WMI API", which can be used to manage your stuffs using code/program. please try the below URL.

http://www.delphi3000.com/articles/article_4392.asp

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文