自动域名注册 [英] automatic sub-domain registration

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

问题描述

我在DNS世界是新的,在互联网上做了一些阅读,想知道我是否得出正确的结论。我想建立一个系统,用户可以自动创建现有注册域的新子域:



我的系统为不同的公司提供服务,这些服务托管在我的系统或一些云提供商。让我的系统服务和一些公司company1。我想提供company1我的服务,并让其用户通过company1新子域访问这些服务,当company1已经注册了一个域名company1.com。我想要company1管理员用户能够通过我的系统在我的系统中注册他的公司来控制和选择子域,并将整个事情自动化。如果我理解正确:


  1. 如果管理员想要使用像services.company1.com这样的子域,这将是一个问题,因为我需要更新我不知道他们是谁的company1.com的权威名称 - 服务器,即使我有一个方法来认识他们(从阅读我看到我有一种方式),我不知道每个这样的名称服务器是否允许这样的更新从一些外部源,连接问题等

  2. ,如果管理员想使用一个子域,如company1.services.com那么我可以通过拥有自己的dns服务器来实现这一点,我将在我自己的dns服务器中注册services.com域并实际管理所有这些公司的子域。这意味着所有公司都必须在我的域名服务网站下有子域名。

请更正我,如果我有关于DNS的工作原理的错误观点。



谢谢!

解决方案

.company1.com



要向您的客户提供这种域名,您需要他们的协作。许多公司提供这种功能,要求您指定一个别名( CNAME记录)到一个特定的服务器。



具体用法示例



  blog.company1.com。 3600 IN CNAME domains.tumblr.com。 
shop.company1.com。 3600 IN CNAME myapp.herokuapp.com。
git.company1.com。 3600 IN CNAME bitbucket.org。

以下是提供此功能的公司的文档的一些链接:





客户端区域文件示例



所以在您的情况下,您的客户DNS区域将包含以下内容: / p>

  services.company1.com。 3600 IN CNAME domains.services.com。 

其中 domains.services.com。将作为处理子域身份验证的服务器



company1.services.com



向您的客户提供 company1.services.com ,您不必管理自己的DNS服务器,您只需要添加一个通配符记录将所有子域指向您的应用程序。您的应用程序将作用于筛选每个子域的服务。



示例服务区域文件



例如(其中0.0.0.0是您的服务IP地址) p>

  *。services.com。 3600 IN A 0.0.0.0 


I'm new at DNS world, did some readings in the Internet and wanted to know if I came to the right conclusions. I want to build a system where users are able to create new sub-domains of existing registered domains automatically:

My system provides services to different companies, these services are hosted in my system or some cloud provider. Lets call my system "services" and some company "company1". I want to offer "company1" my services and have its users access these services through "company1" new sub-domain, when "company1" has an already registered domain company1.com. I want "company1" admin user be able to control and choose the sub-domain via my system when he registers his company in my system, and have the whole thing automatic. If i understand correctly:

  1. if the admin would want to use a sub-domain like services.company1.com this will be a problem since I would need to update the authoritative name-servers of company1.com which I don't know who they are, and even if I have a way to know them (and from reading a bit I see that I do have a way), I don't know if every such name server will allow such updates from some external source, connectivity issues etc
  2. if the admin would like to use a sub-domain like company1.services.com then I can achieve this by having my own dns server which I will register the services.com domain for and actually manage all these company sub-domains in my own dns server. This means though that all companies will have to have a sub-domain under my domain services.com

Please correct me if I have a wrong view on how DNS works.

thanks!

解决方案

services.company1.com

To provide this kind of domain name to your customer, you will need their collaboration. A lot of companies provides this kind of feature by asking you to point an alias (CNAME Record) to a specific server.

Examples of concrete usage

blog.company1.com.      3600    IN  CNAME   domains.tumblr.com.
shop.company1.com.      3600    IN  CNAME   myapp.herokuapp.com.
git.company1.com.       3600    IN  CNAME   bitbucket.org.

Here's some links to the documentation of companies offering this feature:

Sample client zone file

So in your case your customer DNS zone will contain something like that:

services.company1.com.      3600    IN  CNAME   domains.services.com.

where domains.services.com. will be the server that handles the subdomain authentication

company1.services.com

To provide to your customers company1.services.com, you don't have to manage your own DNS server, you just have to be able to add a wildcard record to point all the subdomains to your application. It will be the role of your application to filter your service per subdomains.

Sample service zone file

For example (where 0.0.0.0 is your service IP address):

*.services.com.     3600    IN  A   0.0.0.0 

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

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