Single file DNS client which can process A, AAAA, CNAME and MX records
sudo apt install gcc-arm-linux-gnueabi \
g++-arm-linux-gnueabi \
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf
Building with cosmocc assumes cosmocc directory is $HOME/cosmocc
./tinydns -h 1.1.1.1 -p 53 -q A --time google.com
The ouput is a CSV line with the following format:
1.1.1.1,google.com,A,1754639504,1754639504,0.004934,NOERROR