[Cialug] Query DNS server data

Todd Walton tdwalton at gmail.com
Mon Jul 15 21:54:55 UTC 2019


On Mon, Jul 15, 2019 at 4:00 PM L. V. Lammert <lvl at omnitec.net> wrote:
>
> Looking at a mixed network, .. trying to establish whether the internal
> DNS servers are an external service (e.g. MSP), Router (forwarding), DCs,
> or something else.

awk '/^nameserver /{print $2}' /etc/resolv.conf | xargs -n1 dig +noall
+answer -x

And then also maybe nmap those addresses?

awk '/^nameserver /{print $2}' /etc/resolv.conf | xargs -n1 nmap -v
-sV --version-all -p 53

--
Todd


More information about the Cialug mailing list