O
O
Optimus2014-08-17 21:10:02
Domain Name System
Optimus, 2014-08-17 21:10:02

How to determine the IP of a site?

There are services that determine the ip of the site, for example 2ip.ru Questions:
1. How does it work? IP is determined by means of php or do they refer to some source that shows the ip of the site? Whois, for example, does not seem to show ip
2. How are other sites determined on this ip? Again, your own base for comparison or the original source?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2014-08-17
Pyan @marrk2

ping yandex.ru
Definition in PHP:
php.net/manual/ru/function.gethostbyname.php
On sites, this works by creating a database with ip addresses and domain names.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question