由DNS服务器管理的域列表 [英] List of domains being managed by a DNS server

查看:94
本文介绍了由DNS服务器管理的域列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一台运行Ensim的服务器,它是一种旧的Plesk类工具,可以让我们像一个网络主机一样表现出来。多年来,我们已经从托管业务慢慢退出,但是我们的服务器上仍然有几个客户端。服务器也是一个DNS服务器,我发现我们正在为旧客户端的服务提供DNS,我们甚至还没有主机。我们的目标是关闭服务器,但首先我们需要通知客户对它们的任何影响。我注意到的一件事情是,我们仍然拥有许多域的DNS区域条目,但并不一定意味着这些域正在使用我们的DNS服务器。这只是意味着我们还有记录。这使得很难判断哪些条目被使用,哪些条目只是旧的,孤立的条目。

We have a server running Ensim, an old Plesk-like tool that lets us behave as though we're a web host. Over the years we've slowly exited from the hosting business but we still have a few clients on our server. The server is also a DNS server, and I've discovered that we're providing DNS for old client's services that we're not even hosting anymore. Our goal is to shutdown the server, but first we need to notify customers of any impact it may have on them. One of the things that I've notices is that we still have DNS zone entries for a number of domains, but that doesn't necessarily mean that those domains are using our DNS server. It just means that we still have the records. This makes it very difficult to tell which entries are being used and which ones are just old, orphaned entries.

我的问题是,是否有某种工具可以告诉我哪些域使用我们的DNS服务器?我看到很多方法来输入一个域名,并得到DNS服务器,但是我需要去另一个方向,我输入一个DNS服务器并获取域名。有这样的事情吗?

My question is, is there some sort of tool that can tell me which domains are using our DNS server? I see a lot of ways to type in a domain, and get the DNS server, but I need to go the other direction where I type in a DNS server and get the domains. Does anything like this exist?

推荐答案

如果您有完整的域名列表,您有兴趣,可以使用特殊的批处理模式,在一个单一查询中列出所有这些域名的所有名称服务器。从挖掘的手册页:

If you have the full list of domain names that you are interested in, you can use a special batch mode of dig to list all of the nameservers for all of those domain names in one single query. From the man page of dig:


[-f filename]选项通过读取查询请求列表,以批处理方式进行挖掘从文件文件名进程。该文件包含多个查询,每行一个。文件中的每个条目的组织方式应与使用命令行界面挖掘的查询相同。

The [-f filename] option makes dig operate in batch mode by reading a list of lookup requests to process from the file filename. The file contains a number of queries, one per line. Each entry in the file should be organized in the same way they would be presented as queries to dig using the command-line interface.

通常,您将使用: dig ns microsoft.com 在linux命令行上获取微软的名称服务器。由于您想要多个,因此您创建一个包含域名列表的文件,每行一个。假设您创建一个名为 domainlist 的文件,其中包含以下行:

Normally, you would use: dig ns microsoft.com to get the nameservers for microsoft at the linux command line. Since you want more than one, you create a file that contains the list of domain names, one per line. Let's say you create a file called domainlist that contains the following lines:

microsoft.com
yahoo.com
google.com

你可以使用:

dig ns -f domainlist

列出他们所有的名称服务器记录。我个人更喜欢这种变化:

to list the nameserver records for them all. I personally prefer this variation:

dig +noall +answer ns -f domainlist

因为这提供了一个非常短的NS记录列表,没有任何评论或其他不感兴趣的记录。您还可以检查电子邮件您的客户的域的记录仍然通过使用相同的方法查找mx记录来委派给您的邮件服务器:

because this provides a very short list of NS records, with no comments or other records that I'm not interested in. You can also check if the email records for your clients' domains are still delegated to your mail server by using the same method to look up the mx records:

dig +noall +answer mx -f domainlist

快乐狩猎!

这篇关于由DNS服务器管理的域列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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