Tool to create a diagram of hosts and assigned IP addresses from DNS hosts

Hi LUGBZ members,

we would like to analyze how the domains and subdomains in a DNS zone
(we have the hosts files) are distributed among multiple servers.

Does a tool exist, which takes a list of hosts files and vizualizes the
(sub)domains and the IP addresses to which they are pointing too. We
would like to understand how many and which (sub)domains are pointing to
specific servers, This would help us in consolidating server infrastructure.

A tool would be very helpful, to avoid manual painting of diagrams :wink:

Any help very appreciated!

Patrick

attachment.htm (918 Bytes)

Hi LUGBZ members,

we would like to analyze how the domains and subdomains in a DNS zone (we have the hosts files) are distributed among multiple servers.

Does a tool exist, which takes a list of hosts files and vizualizes the (sub)domains and the IP addresses to which they are pointing too. We would like to understand how many and which (sub)domains are pointing to specific servers, This would help us in consolidating server infrastructure.

A tool would be very helpful, to avoid manual painting of diagrams :wink:

Any help very appreciated!

Patrick

Hi,

this one-liner is far from what you wanted, but gives you a quick start:

grep -P '\d+\.\d+\.\d+\.\d+' * | rev | sort | rev | grep -v TXT

it looks for lines in your files containing IPs and prints them out, sorted by IP,
throwing away TXT records (that probably are somebody other's IP).

Bye,
Chris.

PS: -P is GNU syntax...

Howdy Patrick,

Hi LUGBZ members,

we would like to analyze how the domains and subdomains in a DNS zone (we
have the hosts files) are distributed among multiple servers.

Does a tool exist, which takes a list of hosts files and vizualizes the
(sub)domains and the IP addresses to which they are pointing too. We would
like to understand how many and which (sub)domains are pointing to specific
servers, This would help us in consolidating server infrastructure.

Not sure I get the use case, but you can extract all (sub)domains that
belong to the same IP address from one or more hosts or bind files
using awk:

stefano(a)home:/tmp$ cat hosts
10.1.2.38 wiki.example.com
10.1.2.38 docs.example.com
10.1.2.39 voip.example.com
stefano(a)home:/tmp$ cat hosts2
10.1.2.38 kb.example.com
10.1.2.49 www.example.com
stefano(a)home:/tmp$ echo "To IP 10.1.2.38 belong the following
subdomains:" &&awk '$1 =="10.1.2.38" {print $2}' hosts hosts2
To IP 10.1.2.38 belong the following subdomains:
wiki.example.com
docs.example.com
kb.example.com

In this way at least you know which server/domain runs on which IP.

A tool would be very helpful, to avoid manual painting of diagrams :wink:

I do not know of such a tool, but here [1] there's a list of (mostly
proprietary) tools that claim to make automatic drawings, perhaps some
can be of use.

[1] https://serverfault.com/questions/2163/what-tools-can-create-a-map-of-my-network

HTH,
Stefano

https://nmap.org/book/zenmap-topology.html
Michael von Guggenberg
Badlweg 13

I-39057 Eppan an der Weinstrasse

2018-06-06 9:31 GMT+02:00 Steevie <steevie(a)gmail.com>:

https://nmap.org/book/zenmap-topology.html

2018-06-06 9:31 GMT+02:00 Steevie <steevie(a)gmail.com>: