如何从* nix命令行获取域的mx记录?


Answers:


92

3个选项,从最小到最详细的顺序:

host -t mx mydomain.com
nslookup -q=mx mydomain.com
dig -t mx mydomain.com

差异很大程度上取决于个人喜好。我倾向于使用host,但是如果您想获得有关从服务器获取的确切信息的完整详细信息,那dig是一种方法。


8
不,最详细的选项是dig +short MX mydomain.com
bortzmeyer


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.