Question

Je suis en train d'interroger un domaine pour récupérer sa liste de zone complète DNS (A, MX, CNAME, ...)

Il semble que host -a ne se retourne les enregistrements NS et MX.

Toute aide serait très apprécié.

Merci.

Était-ce utile?

La solution

→ dig -t ANY stackoverflow.com 

; <<>> DiG 9.6.0-APPLE-P2 <<>> -t ANY stackoverflow.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20242
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;stackoverflow.com.     IN  ANY

;; ANSWER SECTION:
stackoverflow.com.  1202    IN  A   64.34.119.12
stackoverflow.com.  65902   IN  NS  ns3.p19.dynect.net.
stackoverflow.com.  65902   IN  NS  ns1.p19.dynect.net.
stackoverflow.com.  65902   IN  NS  ns4.p19.dynect.net.
stackoverflow.com.  65902   IN  NS  ns2.p19.dynect.net.

;; Query time: 38 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Tue Nov 23 19:55:51 2010
;; MSG SIZE  rcvd: 137

Est-ce que le travail pour vous?

Autres conseils

TL; DR

https://superuser.com/questions/24389/is-there-a-way-to-get-the-complete-zone-file-for-a-domain-without-contacting-its


Dans les bonnes traditions de opensource et la liberté de choix, voici l'option anthères: host -t NS stackoverflow.com qui serait sortie suivante:

stackoverflow.com name server ns-cloud-e1.googledomains.com.
stackoverflow.com name server ns-358.awsdns-44.com.
stackoverflow.com name server ns-1033.awsdns-01.org.
stackoverflow.com name server ns-cloud-e2.googledomains.com.

parce que vous avez spécifié le type. Ou utilisez le drapeau -a au lieu de voir tous les dossiers. Sinon, vous pouvez utiliser nslookup -type=any stackoverflow.com. Mais malheureusement, aucune de ces options ne vous donner le fichier de zone. Mais si vous effectuez une recherche sur un autre forum StackExchange vous trouverez la réponse ici: https://superuser.com/questions/24389/is-there-a-way-to-get-the-complete-zone-file-for -a-domain-sans contact avec son -

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top