更改域名指向的IP
这可能是一个非常奇怪的要求。
我需要以编程方式(通过代码)更改域名指向的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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您正在寻找动态 DNS 提供商,例如 No-IP 或 DynDNS。
他们有 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.这实际上取决于设置、您从哪里进行设置以及出于什么原因?
我想您自己也没有运行 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.
有一个名为“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