# Can an A record specify a port number?

Canonical: https://www.namesilo.com/questions/dns-and-email/can-an-a-record-specify-a-port-number

Published: 2026-11-17

Last updated: 2026-11-19

Topic: DNS & email

No. RFC 1035 defines A data as a 32-bit IPv4 address, with no application port or URL path. A URL can identify a port separately. RFC 2782 defines SRV service discovery with a port field, but clients must implement that particular service’s discovery behavior. An A value such as an address followed by :8080 is not an A-record address.

Configure the application endpoint separately

NameSilo’s A-record operation expects an IPv4 address in rrvalue. Publish the host’s address there and configure the required port, hosting route or redirect through the application’s supported setup. Test the exact URL that visitors will use.

Your next steps

Obtain the intended IPv4 address

Publish only that address as A data

Configure the required application endpoint

Test the complete visitor URL

Configure the application endpoint separately

NameSilo’s A-record operation expects an IPv4 address in rrvalue. Publish the host’s address there and configure the required port, hosting route or redirect through the application’s supported setup. Test the exact URL that visitors will use.

Verified detail: A32-bit address, URL port component and SRV port.

Your next step: Test the complete visitor URL.

## Sources

- [IETF RFC 1035 §3.4.1](https://www.rfc-editor.org/rfc/rfc1035.txt#section-3.4.1)

- [IETF RFC 9110 §4.2.1](https://www.rfc-editor.org/rfc/rfc9110.txt#section-4.2.1)

- [IETF RFC 2782](https://www.rfc-editor.org/rfc/rfc2782.txt)

- [NameSilo Add DNS Records](https://www.namesilo.com/api-reference/pages?uid=dns/dns-add-record)
