DomainRecord
API reference for Domain Records (core.apoxy.dev/v1alpha3)
API Group: core.apoxy.dev/v1alpha3
Operations
List Domain Records
List DomainRecord
Response
200: OK
Create Domain Record
Create a DomainRecord
Request Body
Spec fields (DomainRecordSpec):
| Field | Type | Description |
|---|---|---|
name | string | Name is the DNS record name (e.g. "example.com", "www.example.com"). (required) |
target | DomainRecordTarget | Target specifies the record data. (required) |
tls | DomainTLSSpec | TLS configures TLS certificate provisioning for this record's domains. Only valid when target.ref is set. |
ttl | integer (int32) | TTL in seconds. Optional, defaults to 300. |
zone | string | Zone is the name of the DomainZone that manages this record. Optional - empty means standalone (custom domain, not zone-managed). |
Response
200: OK201: Created202: Accepted
Delete All Domain Records
Delete collection of DomainRecord
Response
200: OK
Get Domain Record
Get the specified DomainRecord
Response
200: OK
Replace Domain Record
Replace the specified DomainRecord
Request Body
Spec fields (DomainRecordSpec):
| Field | Type | Description |
|---|---|---|
name | string | Name is the DNS record name (e.g. "example.com", "www.example.com"). (required) |
target | DomainRecordTarget | Target specifies the record data. (required) |
tls | DomainTLSSpec | TLS configures TLS certificate provisioning for this record's domains. Only valid when target.ref is set. |
ttl | integer (int32) | TTL in seconds. Optional, defaults to 300. |
zone | string | Zone is the name of the DomainZone that manages this record. Optional - empty means standalone (custom domain, not zone-managed). |
Response
200: OK201: Created
Update Domain Record
Partially update the specified DomainRecord
Response
200: OK201: Created
Delete Domain Record
Delete a DomainRecord
Response
200: OK202: Accepted
Limits
The DNS servers accept a fixed amount of data at one name. The API refuses a DomainRecord that is over these limits:
- Values - At most 64 values in one DomainRecord, for all fields of
target.dnstogether. - Value length - At most 4096 bytes for each value. TXT, DKIM, SPF and DMARC values count in DNS zone file form: each 255-byte string adds two quotes and a space,
"and\count as 2 bytes, and each byte that is not printable ASCII counts as 4 bytes (éis 8 bytes).
A DomainRecord from before these limits keeps its values. An update that changes target.dns must be in the limits.
The 64-value limit also applies to all DomainRecords at one name together. DMARC values count at the _dmarc name. When the DomainRecords at a name have more than 64 values, the DomainRecord gets the condition DNSRecordsAccepted with status False and reason TooManyValues, and the DNS servers can keep the records from before the change. Remove values until the name has 64 or fewer, and the condition goes away. The reason RecordsRefused means that the DNS servers refuse the records for a different cause, which the condition message gives.
Schema Reference
DomainRecordTarget
| Field | Type | Description |
|---|---|---|
dns | DomainRecordTargetDNS | DNS specifies the record data directly. Exactly one of DNS or Ref must be set. |
ref | LocalObjectReference | Ref specifies a reference to another object within Apoxy (e.g. Proxy, Gateway, DomainRecord). Exactly one of DNS or Ref must be set. |
DomainRecordTargetDNS
| Field | Type | Description |
|---|---|---|
a | string[] | A holds IPv4 A record addresses. |
aaaa | string[] | AAAA holds IPv6 AAAA record addresses. |
caa | string[] | CAA holds Certification Authority Authorization record values. |
dkim | string[] | DKIM holds DKIM (DomainKeys Identified Mail) values. Values should be DKIM public key records (e.g. "v=DKIM1; k=rsa; p=..."). |
dmarc | string[] | DMARC holds DMARC values. Values should follow DMARC syntax (e.g. "v=DMARC1; p=reject; rua=mailto:..."). |
dnskey | string[] | DNSKEY holds DNSKEY records for DNSSEC. Values should be DNSKEY record data (e.g. "257 3 8 <base64-encoded-key>"). |
ds | string[] | DS holds DS (Delegation Signer) records for DNSSEC chain of trust. Values should be DS record data (e.g. "12345 8 2 <digest>"). |
fqdn | string | FQDN holds a CNAME record target. |
mx | string[] | MX holds Mail Exchange record values (e.g. "10 mail.example.com"). |
ns | string[] | NS holds Name Server record values. |
spf | string[] | SPF holds SPF (Sender Policy Framework) values. Values should follow SPF syntax (e.g. "v=spf1 include:_spf.google.com ~all"). |
srv | string[] | SRV holds Service Locator record values. |
txt | string[] | TXT holds TXT record values. |
LocalObjectReference
| Field | Type | Description |
|---|---|---|
group | string | Group is the API Group of the referenced object. (required) |
name | string | Name is the name of the referenced object. (required) |
DomainTLSSpec
| Field | Type | Description |
|---|---|---|
certificateAuthority | string | The Certificate Authority used to issue the TLS certificate. Currently supports "letsencrypt". |