> Where is he getting the data like: "inetnum: 175.45.176.0 - 175.45.179.255 ..."?
You're missing `whois`[1]. The wikipedia page is very informative.
If you give it an IP, it will give you "ownership" status of that particular IP, and then its containing netblocks ("outwards").
Example: (my favourite IP)
$ whois 5.9.6.9
% Information related to '5.9.6.0 - 5.9.6.31'
inetnum: 5.9.6.0 - 5.9.6.31
netname: HETZNER-RZ16
descr: Hetzner Online AG
descr: Datacenter 16
country: DE
--8<--
% Information related to '5.9.0.0/16AS24940'
route: 5.9.0.0/16
descr: HETZNER-RZ-FKS-BLK5
origin: AS24940
mnt-by: HOS-GUN
source: RIPE # Filtered
It gives you more things like contact information, abuse contact details, etc.
With a domain, it looks up the domain registration information.
If you ever script around whois, be prepared for loads of surprises, such as:
* Structure & format variations per provider (can be different on a TLD level)
* Some TLDs may not provide that information in a whois format at all:
$ whois test.gr
This TLD has no whois server, but you can access the whois database at
https://grweb.ics.forth.gr/whois_en.jsp
[1]
http://en.wikipedia.org/wiki/Whois