Skip to main content

zone_file

Creates, updates, deletes, gets or lists a zone_file resource.

Overview​

Namezone_file
TypeResource
Idlinode.domains.zone_file

Fields​

The following fields are returned by SELECT queries:

An array containing the lines of the domain zone file.

NameDatatypeDescription

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomainIdReturns the zone file for the last rendered zone for the specified domain.

Learn more...

Learn more...

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domainIdstringID of the Domain. (example: {{domainId}})

SELECT examples​

Returns the zone file for the last rendered zone for the specified domain.

Learn more...

Learn more...

SELECT
*
FROM linode.domains.zone_file
WHERE domainId = '{{ domainId }}' -- required
;