如何从域名列表中过滤CDN服务的域名? [英] How can I filter the domains served by a CDN from a list of domain names?

查看:99
本文介绍了如何从域名列表中过滤CDN服务的域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个域列表,我需要过滤CDN(内容交付网络)服务的域。我将使用python脚本来做到这一点。
起初,我想我可以从域名中识别出它们。但是,并非所有的域名都具有cdn关键字。

I have a list of domains and I need to filter the domains served by a CDN(Content Delivery Network). I am going to use python script to do that. At the first I was thinking I can identify them from the domain name. But not all of the domain names have cdn keyword.

在CDN服务的域中是否有任何理由或功能用于识别CDN服务的域?

Is there any reason or any feature in the CDN served domains which I use that for identifying CDN served domains?

推荐答案

首先,您无法做到100%准确。

First of all, you can't do it with 100% accuracy.

但是,在许多情况下,您可以通过跟踪CNAME记录(使用该云提供者来领导各自提供者的服务器)来标识域。
即这是Amazon CloudFront上的文档 http://docs.aws.amazon。 com / AmazonCloudFront / latest / DeveloperGuide / CNAMEs.html

But you can identify domains using popular cloud providers in many cases by tracking CNAME records which would lead the respective provider's servers. I.e. here's a doc on Amazon CloudFront http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html


在CloudFront中,备用域名,也称为CNAME ,让
使用您自己的域名(例如www.example.com)将
链接到您的对象,而不是使用CloudFront
分配给您的分布的域名

In CloudFront, an alternate domain name, also known as a CNAME, lets you use your own domain name (for example, www.example.com) for links to your objects instead of using the domain name that CloudFront assigns to your distribution

示例:

dig -t CNAME c.amazon-adsystem.com
c.amazon-adsystem.com.  896     IN      CNAME   d1ykf07e75w7ss.cloudfront.net.

这篇关于如何从域名列表中过滤CDN服务的域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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