Point a domain to your server
Updated 27 Nov 2026 dns domain
Create DNS records that point a domain to your server.
Create the record
At your DNS provider add an A record:
| Name | Type | Value |
|---|---|---|
@ |
A | your server's public IPv4 |
www |
CNAME | your domain |
Check it:
dig +short example.com A
Dedicated IPv4
Visitors reach your web server on ports 80 and 443 once it is listening and your firewall allows it.
Shared IPv4
A DNS record cannot carry a port number. http://example.com goes to port 80, which is not forwarded on shared-IPv4 plans. Your options:
- A tunnel service such as Cloudflare Tunnel
- A custom port in the address,
http://example.com:20002, suitable for testing and internal use - A plan with a dedicated address, where offered
Do not
Publish an AAAA record unless your server actually has that IPv6 address, or some visitors will fail to connect.