DNS:如何通过TLD挖掘正确的域名?

时间:2022-09-18 20:34:36

I'd like to query the DNS records until get the right domain name.

我想查询DNS记录,直到获得正确的域名。

For instance, given www.subdomain.site.com.br, be able to dig from .br until site.com.br.

例如,给定www.subdomain.site.com.br,能够从.br挖掘到site.com.br.

Which is the most (protocol-speaking) way to achieve that? An recipe using dig/nslookup would be best.

实现这一目标的最多(以协议为导向)方式是什么?使用dig / nslookup的配方最好。

Thanks.

2 个解决方案

#1


dig www.mysite.domain.com @a.root-servers.net

you'll get the next level from there. Just replace the portion after the '@' and keep recursing until you query a server that gives an answer rather than additional information

你会从那里获得下一个级别。只需替换'@'后面的部分并继续递归,直到您查询提供答案的服务器而不是其他信息

#2


dig +trace www.subdomain.site.com.br

will show you exactly what happens.

会告诉你到底发生了什么。

#1


dig www.mysite.domain.com @a.root-servers.net

you'll get the next level from there. Just replace the portion after the '@' and keep recursing until you query a server that gives an answer rather than additional information

你会从那里获得下一个级别。只需替换'@'后面的部分并继续递归,直到您查询提供答案的服务器而不是其他信息

#2


dig +trace www.subdomain.site.com.br

will show you exactly what happens.

会告诉你到底发生了什么。