Skip to content
Middle+66 views

Как из консоли узнать IP-адрес домена?

Practice

Asked at

AI answer

Use the DNS utility dig or nslookup:

dig example.com A       # IPv4 addresses
 dig example.com AAAA   # IPv6 addresses
nslookup example.com

With dig, you can output only the addresses: dig +short example.com. A domain can have multiple IP addresses; the result depends on the DNS response, load balancing, and the network from which the query is made. These commands show addresses from DNS, which are not necessarily the actual IP address of the specific server the application will connect to.