1 min read

Use `dig` to Retrieve Server Information for a Domain

想要ηŸ₯道一個 domain ηš„ DNS θ³‡θ¨ŠοΌŒε―δ»₯使用 dig δΎ†ι”ζˆ

# θͺžζ³•
dig <DOMAIN>

例如

dig google.com

ζœƒι‘―η€Ί google.com ηš„ DNS θ¨˜ιŒ„οΌŒεŒ…ζ‹¬ IP ε’Œη›Έι—œθ³‡θ¨Š

ι€²ιšŽη”¨ζ³•

dig +short <DOMAIN> # εͺι‘―η€Ίη°‘ηŸ­ηš„η΅ζžœ
dig <DOMAIN> ANY # ζŸ₯θ©’ domain ηš„ζ‰€ζœ‰ DNS θ¨˜ιŒ„
dig <DOMAIN> MX # ζŸ₯θ©’ domain ηš„ιƒ΅δ»ΆδΌΊζœε™¨