Skip to main content

secondary_dns_domains_dns_servers

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

Overview​

Namesecondary_dns_domains_dns_servers
TypeResource
Idovh.vps.secondary_dns_domains_dns_servers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
hostnamestringthe name server
ipstring (ipv4)IPv4 address (e.g., 192.0.2.0) (example: 192.0.2.0)
ipv_6string (ipv6)IPv6 address (e.g., 2001:41d0:1:1994::1) (example: 2001:41d0:1:1994::1) (wire: ipv6)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain, service_nameReturns the name and the IP of the authoritative name server of a secondary DNS domain of the VPS.

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
domainstringDomain
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the name and the IP of the authoritative name server of a secondary DNS domain of the VPS.

SELECT
hostname,
ip,
ipv_6
FROM ovh.vps.secondary_dns_domains_dns_servers
WHERE domain = '{{ domain }}' -- required
AND service_name = '{{ service_name }}' -- required
;