Simply put, make a metaphor.
Suppose the number on the switchboard is 600666, we need to find the number with extension 107. 107 is the number of the internal network, which cannot be seen on the external network. Therefore, if an outsider wants to receive the telephone number of 107 directly, he must know the number of 107 and transfer it through the switchboard, which can be understood as the port number on the network. Next time you dial this number, you can find the owner of 107 directly by dialing the extension, without inquiring through the host. Domain name resolution is to let the external network directly find the exposed network address. Generally, companies that have domain name resolution are doing it.