66 views
Как из консоли узнать IP-адрес домена?
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.
Also asked at ozon_tech
- What salary range are you currently considering?
- Tell about transactions: what they are and what are the levels of transaction isolation?
- What transaction isolation levels exist in PostgreSQL?
- Tell me about TCP and UDP, what is the difference?
- Please tell me what you are currently doing, what is your area of responsibility, and what tasks you are working on?
Similar questions
- What happens between the moment we type `curl https://flant.ru` into the terminal and press Enter, and the moment the HTML code is displayed?
- How do the terminal and shell know what curl is, and how is the executable file located?
- Will curl run if it is located in the /opt directory when invoked simply as `curl`?
- What is the difference between the HTTP errors 502, 503, and 504?
- What can change in an IP packet as it passes through a router (without NAT)?