开发者

Linux Command for a Raw DNS Response

Does anyone know how to fetch the raw output of a DNS query using a particular linux command?

The commands that I am familiar with are:

% host

% nslookup

% dig

% whois

however, each o开发者_StackOverflow中文版f these play around with DNS in some form or another, but how can I get the raw output that the server DNS spits out when its queried?

Many Thanks!


Turns out that the best solution to find out as much of the DNS stuff as possible is to use the host -v command.

host -v xxx.xxx.xxx.xxx

or

host -v domain.com


you could get it with tcpdump while running dig. I believe the flags would be tcpdump -n -s0 -x -X port 53

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜