getting the SOA e-mail

Johnno johnno at nospam.casebook.org
Wed Jun 7 08:06:23 UTC 2000


"Lee Howard" <faxguy at server.deanox.com> wrote:

> How do you extract the e-mail address found on the SOA line from
> somebody else's server out there.  Will nslookup do this?

Try this:

dig soa domain.com | grep 'IN SOA' | awk '{print $6}'

Using grep, I am looking only for the SOA record from the answer section
containing the authoritative nameserver and email address; all other lines in
the output are ignored.

Using awk, I print the 6th field (delimited by spaces) to extract the email
address.

--
Johnno (johnno at nospam.casebook.org)
http://members.optusnet.com.au/~japp


.



More information about the bind-users mailing list