Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 of 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!

like image 614
matsko Avatar asked Jan 20 '23 22:01

matsko


1 Answers

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
like image 123
matsko Avatar answered Jan 25 '23 06:01

matsko