Bazen belirli bir IP‘nin hangi kuruma ait olduğu hangi IP aralığında olup olmadığını veya belirli bir ASN’ye ait olup olmadığını tespit etmemiz gerekir.
Bunun en kolay yollarından bir tanesi ise whois
aracını kullanmaktır.
Dig ile DNS ve diğer bilgileri getiriyoruz.
dig turktelekom.com
Çıktısı aşağıdaki gibi olacaktır.
; <<>> DiG 9.13.3 <<>> turktelekom.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54174
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;turktelekom.com. IN A
;; ANSWER SECTION:
turktelekom.com. 3599 IN A 212.175.73.136
;; Query time: 161 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Mon Nov 19 21:40:30 +03 2018
;; MSG SIZE rcvd: 60
$ whois 212.175.73.136
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf
% Note: this output has been filtered.
% To receive output for a database update, use the "-B" flag.
% Information related to '212.175.72.0 - 212.175.73.255'
% Abuse contact for '212.175.72.0 - 212.175.73.255' is 'abuse@ttnet.com.tr'
inetnum: 212.175.72.0 - 212.175.73.255
netname: TURKTELEKOM
descr: TT-GM
country: tr
admin-c: TTBA1-RIPE
tech-c: TTBA1-RIPE
status: ASSIGNED PA
mnt-by: AS9121-MNT
created: 2014-03-12T08:10:13Z
last-modified: 2014-03-12T08:10:13Z
source: RIPE
role: TT Administrative Contact Role
address: Turk Telekom Genel Mudurlugu
phone: +90 312 555 0000
fax-no: +90 312 313 1924
admin-c: BADB3-RIPE
abuse-mailbox: abuse@ttnet.com.tr
tech-c: BADB3-RIPE
tech-c: BADB3-RIPE
tech-c: BADB3-RIPE
nic-hdl: TTBA1-RIPE
mnt-by: AS9121-MNT
created: 2002-02-28T12:22:28Z
last-modified: 2017-03-29T05:21:26Z
source: RIPE # Filtered
% Information related to '212.175.0.0/17AS9121'
route: 212.175.0.0/17
descr: TurkTelecom
origin: AS9121
mnt-by: AS9121-MNT
created: 2004-12-14T13:04:13Z
last-modified: 2004-12-14T13:04:13Z
source: RIPE
% This query was served by the RIPE Database Query Service version 1.92.6 (WAGYU)
Burada gözümüze çarpan origin: AS9121
olacaktır bu bilgi ile kuruma ait olan tüm IP havuzu belirlenebilmektedir.
whois -h whois.ripe.net -T route AS9121 -i origin | grep ^route: | awk '{print $NF}'
Tespit edilen IP adresleri ise şu şekilde gözükmektedir
176.52.176.0/22
193.110.209.0/24
193.201.128.0/22
193.254.252.0/23
193.254.252.0/24
194.54.32.0/19
195.174.0.0/15
195.174.0.0/16
195.174.0.0/17
195.174.128.0/17
195.174.128.0/18
195.174.153.0/24
195.174.192.0/18
195.175.0.0/17
195.175.128.0/17
195.175.128.0/18
195.175.192.0/18
212.156.0.0/16
212.156.0.0/17
212.156.0.0/18
212.156.100.0/24
212.156.104.0/23
212.156.106.0/24
212.156.110.0/23
212.156.112.0/22
212.156.122.0/23
212.156.124.0/22
212.156.128.0/17
212.156.128.0/18
212.156.192.0/19
212.156.224.0/20
212.156.240.0/21
212.156.248.0/23
212.156.254.0/23
212.156.64.0/19
212.156.96.0/22
212.174.0.0/15
212.174.0.0/16
212.174.0.0/17
212.174.128.0/17
212.174.190.0/24
212.174.191.0/24
212.175.0.0/16
212.175.0.0/17
212.175.128.0/17
62.248.0.0/17
62.248.56.0/24
62.248.57.0/24
62.248.58.0/24
62.248.59.0/24
62.248.60.0/24
62.248.61.0/24
62.248.62.0/24
62.248.63.0/24
78.160.0.0/11
78.160.0.0/17
78.160.128.0/17
78.160.128.0/18
78.160.192.0/18
78.161.0.0/17
78.161.0.0/18
78.161.128.0/17
78.161.128.0/18
78.161.192.0/18
78.161.64.0/18
78.162.0.0/17
78.162.0.0/18
78.162.128.0/17
78.162.128.0/18
78.162.192.0/18
78.162.64.0/18
78.163.0.0/17
78.163.0.0/18
78.163.128.0/17
78.163.128.0/18
78.163.192.0/18
78.163.64.0/18
78.164.0.0/17
78.164.0.0/18
78.164.128.0/17
78.164.128.0/18
78.164.192.0/18
78.164.64.0/18
78.165.0.0/17
78.165.0.0/18
78.165.128.0/17
78.165.128.0/18
78.165.192.0/18
78.165.64.0/18
78.166.0.0/17
78.166.0.0/18
78.166.128.0/17
78.166.128.0/18
78.166.192.0/18
78.166.64.0/18
78.167.0.0/17
78.167.0.0/18
78.167.128.0/17
78.167.128.0/18
78.167.192.0/18
78.167.64.0/18
78.168.0.0/17
78.168.0.0/18
78.168.128.0/17
78.168.128.0/18
78.168.192.0/18
78.168.64.0/18
78.169.0.0/17
78.169.0.0/18
78.169.128.0/17
78.169.128.0/18
78.169.192.0/18
78.169.64.0/18
78.170.0.0/17
78.170.0.0/18
78.170.128.0/17
78.170.128.0/18
78.170.192.0/18
78.170.64.0/18
78.171.0.0/17
78.171.0.0/18
78.171.128.0/17
78.171.128.0/18
78.171.192.0/18
78.171.64.0/18
78.172.0.0/17
78.172.0.0/18
78.172.128.0/17
78.172.128.0/18
78.172.192.0/18
78.172.64.0/18
78.173.0.0/17
78.173.0.0/18
78.173.128.0/17
78.173.128.0/18
78.173.192.0/18
78.173.64.0/18
78.174.0.0/17
78.174.0.0/18
78.174.128.0/17
78.174.128.0/18
78.174.192.0/18
78.174.64.0/18
78.175.0.0/17
78.175.0.0/18
78.175.128.0/17
78.175.128.0/18
78.175.192.0/18
78.175.64.0/18
78.176.0.0/17
78.176.128.0/17
78.177.0.0/17
78.177.128.0/17
78.178.0.0/17
78.178.128.0/17
78.179.0.0/17
78.179.128.0/17
78.180.0.0/17
78.180.128.0/17
78.181.0.0/17
78.181.128.0/17
78.182.0.0/17
78.182.128.0/17
78.183.0.0/17
78.183.128.0/17
78.184.0.0/17
78.184.128.0/17
78.185.0.0/17
78.185.128.0/17
78.186.0.0/17
78.186.128.0/17
78.187.0.0/17
78.187.128.0/17
78.188.0.0/17
78.188.128.0/17
78.189.0.0/17
78.189.128.0/17
78.190.0.0/17
78.190.128.0/17
78.191.0.0/17
78.191.128.0/17
81.212.0.0/16
81.212.0.0/17
81.212.0.0/20
81.212.128.0/17
81.212.128.0/18
81.212.16.0/21
81.212.193.0/24
81.212.194.0/23
81.212.196.0/24
81.212.224.0/20
81.212.250.0/23
81.212.252.0/22
81.212.33.0/24
81.212.34.0/23
81.212.36.0/22
81.212.40.0/21
81.212.48.0/20
81.212.64.0/18
81.213.0.0/16
81.213.0.0/17
81.213.128.0/17
81.214.0.0/16
81.214.0.0/17
81.214.128.0/17
81.215.0.0/16
81.215.0.0/17
81.215.128.0/17
85.100.0.0/17
85.100.128.0/17
85.101.0.0/17
85.101.128.0/17
85.102.0.0/17
85.102.128.0/17
85.103.0.0/17
85.103.128.0/17
85.104.0.0/16
85.104.0.0/17
85.104.128.0/17
85.105.0.0/17
85.105.128.0/17
85.106.0.0/17
85.106.128.0/17
85.107.0.0/17
85.107.128.0/17
85.108.0.0/17
85.108.128.0/17
85.109.0.0/17
85.109.128.0/17
85.110.0.0/17
85.110.128.0/17
85.111.0.0/17
85.111.128.0/17
85.96.0.0/16
85.96.0.0/17
85.96.128.0/17
85.97.0.0/17
85.97.128.0/17
85.98.0.0/17
85.98.128.0/17
85.99.0.0/17
85.99.128.0/17
88.224.0.0/17
88.224.128.0/17
88.225.0.0/17
88.225.128.0/17
88.226.0.0/17
88.226.128.0/17
88.227.0.0/17
88.227.128.0/17
88.228.0.0/17
88.228.128.0/17
88.229.0.0/17
88.229.128.0/17
88.230.0.0/17
88.230.128.0/17
88.231.0.0/17
88.231.128.0/17
88.232.0.0/17
88.232.128.0/17
88.233.0.0/17
88.233.128.0/17
88.234.0.0/17
88.234.128.0/17
88.235.0.0/17
88.235.128.0/17
88.236.0.0/17
88.236.128.0/17
88.237.0.0/17
88.237.128.0/17
88.238.0.0/17
88.238.128.0/17
88.239.0.0/17
88.239.128.0/17
88.240.0.0/17
88.240.128.0/17
88.241.0.0/17
88.241.128.0/17
88.242.0.0/17
88.242.128.0/17
88.243.0.0/17
88.243.128.0/17
88.244.0.0/17
88.244.128.0/17
88.245.0.0/17
88.245.128.0/17
88.246.0.0/17
88.246.128.0/17
88.247.0.0/17
88.247.128.0/17
88.248.128.0/17
88.249.0.0/17
88.249.128.0/17
88.250.0.0/17
88.250.128.0/17
88.251.0.0/16
88.251.0.0/17
88.251.128.0/17
88.252.0.0/16
88.252.0.0/17
88.252.128.0/17
88.253.0.0/16
88.253.0.0/17
88.253.128.0/17
88.254.0.0/16
88.254.0.0/17
88.254.128.0/17
88.255.0.0/16
88.255.0.0/17
88.255.128.0/17
95.0.0.0/16
95.0.0.0/17
95.0.128.0/17
95.1.0.0/17
95.1.128.0/17
95.10.0.0/17
95.10.128.0/17
95.11.0.0/17
95.11.128.0/17
95.12.0.0/17
95.12.128.0/17
95.13.0.0/17
95.13.128.0/17
95.14.0.0/17
95.14.128.0/17
95.15.0.0/17
95.15.128.0/17
95.2.0.0/17
95.2.128.0/17
95.3.0.0/17
95.3.128.0/17
95.4.0.0/17
95.4.128.0/17
95.5.0.0/17
95.5.128.0/17
95.6.0.0/17
95.6.128.0/17
95.7.0.0/17
95.7.128.0/17
95.8.0.0/17
95.8.128.0/17
95.9.0.0/17
95.9.128.0/17