How can I enter a port when using netlify dns?

Hello,

I am using the A dns record and when I add my port, it seems to not work.

Example: 111.1.1.1:22222

The 2’s are not accounted for and do not work.

How can I fix this?

@5Flux As this answer on SO specifies, DNS has no concept of ports.

DNS handles name resolution to IP address. Ports are handled by the server and depending on the protocol you are using (in a web browser example http: port 80, https: port 443) is handled by the client request. The server decides if it will listen for a request at that port or not. The client decides what port it will make the request over.

Not sure what exactly you are trying to do.

A redirect like the following changes a request from port 80 to port 443 on Netlify

http://example.com    https://example.com    301!
2 Likes