Scripting - comando nslookup

Se siamo nella necessità di avere info su un dominio web il comamndo nslookup fa al caso nostro.

Si da:

nslookup


> set q=any
> google.com

Server:  xxxx
Address:  xxx.xxx.xxx.xxx

Risposta da un server non di fiducia:
google.com      text =

        "v=spf1 include:_netblocks.google.com ip4:216.73.93.
72/31 ~all"
google.com      internet address = 209.85.146.99
google.com      internet address = 209.85.146.103
google.com      internet address = 209.85.146.104
google.com      internet address = 209.85.146.105
google.com      internet address = 209.85.146.106
google.com      internet address = 209.85.146.147



(root)  nameserver = d.root-servers.net
(root)  nameserver = c.root-servers.net
(root)  nameserver = f.root-servers.net
(root)  nameserver = b.root-servers.net
(root)  nameserver = m.root-servers.net
(root)  nameserver = a.root-servers.net
(root)  nameserver = k.root-servers.net
(root)  nameserver = e.root-servers.net
(root)  nameserver = g.root-servers.net
(root)  nameserver = j.root-servers.net
(root)  nameserver = h.root-servers.net
(root)  nameserver = l.root-servers.net
(root)  nameserver = i.root-servers.net
d.root-servers.net      internet address = 128.8.10.90
c.root-servers.net      internet address = 192.33.4.12
f.root-servers.net      AAAA IPv6 address = 2001:500:2f::f
f.root-servers.net      internet address = 192.5.5.241

Per avere info invece sui record mx:

> set q=mx
> google.it

Server:  xxxx
Address:  xxx.xxx.xxx.xxx

Risposta da un server non di fiducia:
google.it       MX preference = 10, mail exchanger = google.com.s9b1.psmtp.com
google.it       MX preference = 10, mail exchanger = google.com.s9b2.psmtp.com
google.it       MX preference = 10, mail exchanger = google.com.s9a1.psmtp.com
google.it       MX preference = 10, mail exchanger = google.com.s9a2.psmtp.com
>

altrimenti se vogliamo interrogare un DNS diverso bisogna:

nslookup

server 8.8.8.8. (o IP server alternativo)

set q=all

sito.xx