Tool 102: Query a DNS server


  This tool queries a DNS server. For example, it can retrieve IP
  address associated to a hostname.
  Parameter --dst-ip defines the DNS server address. This server has to
  be authoritative for the query requested (or allow recursion, if
  --recurdesired is set).
  Parameter --name contains the name to query.
  Parameter --type indicates the requested information type.
  Example: 'netwox 102 server --name --type a'
  Example: 'netwox 102 server --name --type ptr'
  Example: 'netwox 102 server --name --type mx'
  Parameter --tcp uses TCP instead of UDP. This is generally not
  Parameter --dst-ip is the address of remote host/server.
  Parameter --dst-port is the port number where to connect.
  Optional parameter --src-ip defines the local IP address to use.
  Optional parameter --src-port defines the local port number to use.
  Optional parameter --ip4opts permits to add IPv4 options encoded as
  Optional parameter --ip6exts permits to add IPv6 options encoded as
  mixed (first byte is the next header number).
  Optional parameters --device, --src-eth and --dst-eth permits to
  create a virtual client using fake addresses.


  dig, nslookup


  netwox 102 -i ip -n data -y data [-d device] [-E eth] [-e eth] [-I ip] [-P port] [-p port] [-o ip4opts] [-O ip6exts] [-c data] [-u|+u] [-C|+C] [-T uint32]


parameter description example
-i|--dst-ip ip destination IP address
-n|--name data name to query
-y|--type data type (a, ptr, ns, etc.) a
-d|--device device device name Eth0
-E|--src-eth eth source ethernet address 0:2:3:4:5:6
-e|--dst-eth eth destination ethernet address 0:8:9:a:b:c
-I|--src-ip ip source IP address
-P|--src-port port source port number 0
-p|--dst-port port destination port number 53
-o|--ip4opts ip4opts IPv4 options  
-O|--ip6exts ip6exts IPv6 extensions  
-c|--class data class (in, ch, etc.) in
-u|--recurdesired|+u|--no-recurdesired recursion desired  
-C|--tcp|+C|--no-tcp if use TCP instead of UDP  
-T|--timeout uint32 timeout in milliseconds 10000


  netwox 102 -i "" -n "" -y "a"

  netwox 102 --dst-ip "" --name "" --type "a"