Domain name resolution generally does not need to set the port number, just fill in the IP directly, and the default port is 80.
A domain name can only correspond to one port number. You can set www. Set the domain name to one port, and then set the domain name (without www) to another port.