{"id":"https://www.namesilo.com/questions/dns-and-email/can-an-a-record-specify-a-port-number","url":"https://www.namesilo.com/questions/dns-and-email/can-an-a-record-specify-a-port-number","title":"Can an A record specify a port number?","description":"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…","language":"en","category":"dns-and-email","datePublished":"2026-11-17","dateModified":"2026-11-19","answer":"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.","body":"Can an A record specify a port number?\n\nNo. 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.\n\nConfigure the application endpoint separately\n\nNameSilo’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.\n\nYour next steps\n\nObtain the intended IPv4 address\n\nPublish only that address as A data\n\nConfigure the required application endpoint\n\nTest the complete visitor URL\n\nConfigure the application endpoint separately\n\nNameSilo’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.\n\nVerified detail: A32-bit address, URL port component and SRV port.\n\nYour next step: Test the complete visitor URL.","steps":["Obtain the intended IPv4 address","Publish only that address as A data","Configure the required application endpoint","Test the complete visitor URL"],"faqs":[],"sources":[{"name":"IETF RFC 1035 §3.4.1","url":"https://www.rfc-editor.org/rfc/rfc1035.txt#section-3.4.1"},{"name":"IETF RFC 9110 §4.2.1","url":"https://www.rfc-editor.org/rfc/rfc9110.txt#section-4.2.1"},{"name":"IETF RFC 2782","url":"https://www.rfc-editor.org/rfc/rfc2782.txt"},{"name":"NameSilo Add DNS Records","url":"https://www.namesilo.com/api-reference/pages?uid=dns/dns-add-record"}],"json":"https://www.namesilo.com/questions/data/can-an-a-record-specify-a-port-number.json","markdown":"https://www.namesilo.com/questions/data/can-an-a-record-specify-a-port-number.md"}