如何自动创建DNS域名? [英] How would you create sub-domains with DNS automatically?

查看:110
本文介绍了如何自动创建DNS域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式自动更新我的DNS多个域。我在GoDaddy上运行BIND服务器(在FreeBSD上)以及主机域和DNS。我找不到GoDaddy的Web服务API来访问和更新我们的DNS,因此我可能必须使用我的BIND服务器提供动态解决方案。

I would like to automatically update my DNS more multiple domains programmatically. I run a BIND server (on FreeBSD) as well as host domains and DNS at GoDaddy. I could not find a web service API for GoDaddy to access and update my DNS that they are hosting so I may have to use my BIND server to provide a dynamic solution.

基本上我只想查询哪些子域已经存在并添加了新的。

Basically I just want to query which sub-domains already exist and add new ones.

BIND是最好的解决方案吗?有没有另外一种方式可以自动添加新的域名,而无需登录GoDaddy或手动更新我的BIND配置?

Is BIND the best solution? Is there another way to automatically add new domains without me having to log into GoDaddy or update my BIND configuration manually?

推荐答案

您需要添加新的子域是动态更新,如 RFC 2136 中所述,并且得到BIND的良好支持。

The feature you need to add new sub-domains is Dynamic Updates, as specified in RFC 2136, and well supported by BIND.

相当容易(例如,使用Perl的Net :: DNS模块)从DNSUPDATE的区域文件添加和删除记录消息。

It's reasonably easy (for example with Perl's Net::DNS module) to add and remove records from a zone file with the DNS "UPDATE" message.

要实际检索什么,您有两种方法:

To actually retrieve what's there, you've got two approaches:


    <将其他数据库视为确定的,并将该数据库中的更改转换为ddns更新,或。
  1. Treat some other database as definitive, and convert changes in that database into ddns updates, or.

允许DNSAXFR消息允许您下载整个区域内容(尽管只适用于您的区域管理系统,而不是整个世界!)

Permit DNS "AXFR" messages to allow you to download the entire zone content (albeit only to your zone management system, not to the whole world!)

这篇关于如何自动创建DNS域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆