AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1746646
Accepted
AliM67
AliM67
Asked: 2022-10-10 08:58:30 +0800 CST2022-10-10 08:58:30 +0800 CST 2022-10-10 08:58:30 +0800 CST

是否可以找到 DNS 记录的目标内容?

  • 772

假设 domain 有以下 2 条记录example.com:

类型 姓名 内容(目的地) 子域网址
一个 子1 185.185.185.185 sub1.example.com
CNAME 子2 xxx.another-example.com sub2.example.com

是否可以通过 DNS 查找工具获取子域的记录内容(目标) ?

编辑:

为了澄清我的问题,我添加了一个真实案例,如下所示。这是我域上的 DNS 记录之一,它将我的子域指向 000webhost.com 上的另一个网页:

类型 姓名 内容(目的地) 子域网址
CNAME ppp1 testmypageeasy.000webhostapp.com ppp1.tradecryptoforme.com

我想知道其他人是否可以弄清楚记录的目的地(在这种情况下,testmypageeasy.000webhostapp.com)?

dns subdomain
  • 2 2 个回答
  • 59 Views

2 个回答

  • Voted
  1. Best Answer
    user1686
    2022-10-10T11:46:04+08:002022-10-10T11:46:04+08:00

    是的,只要做一个常规的 DNS 查询,你就会得到相应的值。

    $ dig www.example.com -t A
    
    ;; ANSWER SECTION:
    www.example.com.            86398   IN   A       93.184.216.34
    

    这也适用于查询具有 CNAME 的域名,尽管在这种情况下,它取决于您的查询要求的记录类型。如果您要查询CNAME,那么您将始终只获得 CNAME:

    $ dig www.linode.com -t cname @1.1.1.1
    
    ;; ANSWER SECTION:
    www.linode.com.               271   IN   CNAME   linode.com.edgekey.net.
    

    如果您正在查询任何其他类型,那么您仍将获得 CNAME和目标记录(如果服务器知道它 - 在此示例中,1.1.1.1 服务器将递归解析它,但如果它是非递归服务器并且目标属于另一台服务器,那么您仍然只获得 CNAME):

    $ dig www.linode.com -t a @1.1.1.1
    
    ;; ANSWER SECTION:
    www.linode.com.               294   IN   CNAME   linode.com.edgekey.net.
    linode.com.edgekey.net.     21594   IN   CNAME   e26254.dsca.akamaiedge.net.
    e26254.dsca.akamaiedge.net.    14   IN   A       87.245.209.222
    e26254.dsca.akamaiedge.net.    14   IN   A       87.245.209.208
    

    为了解决我的问题,我想知道其他人可以弄清楚我的记录有哪些内容(在本例中为 185.185.185.185 和 xxx.another-example.com)?

    Generally, yes, they can. In fact, doing so is the literally the purpose of DNS – practically the only thing that a DNS server does is answer client queries about what contents your DNS records have.

    Your website traffic is not relayed through your domain or through DNS servers – clients must know the contents of DNS records so that they could connect to the appropriate server.

    (The only exception to this is the Cloudflare CDN, whose dashboard looks exactly like a DNS record table but is slightly more than that. Enabling the CDN proxy feature for a particular subdomain causes Cloudflare to remove that subdomain's A/AAAA record contents from DNS and to publish the CDN's own addresses in its place, therefore making the actual DNS contents different from what you've entered. Even then, though, clients can still see what was published to DNS.)

    • 0
  2. Ram
    2022-10-11T08:54:45+08:002022-10-11T08:54:45+08:00

    Yes. The purpose of DNS is to provide an extremely scalable look-up service where one looks up a DNS name (ie a host) and gets back a record that may be another DNS name or an address record (IP address), a text record or a few others.

    • 0

相关问题

  • 如何设置 DNS、AWS S3、AWS Cloudfront 和 AWS Certificate Manager 以保护多个站点

  • 5355 UDP svchost.exe Dnscache

  • 使用 dnsmasq.conf 阻止内部 IP 地址

  • 需要验证 firebaseapp.com 子域

  • 迁移 Windows Server 2008

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve