fortios.system.Dns
Explore with Pulumi AI
Configure DNS.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.system.Dns("trname", {
cacheNotfoundResponses: "disable",
dnsCacheLimit: 5000,
dnsCacheTtl: 1800,
ip6Primary: "::",
ip6Secondary: "::",
primary: "208.91.112.53",
retry: 2,
secondary: "208.91.112.51",
sourceIp: "0.0.0.0",
timeout: 5,
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.system.Dns("trname",
cache_notfound_responses="disable",
dns_cache_limit=5000,
dns_cache_ttl=1800,
ip6_primary="::",
ip6_secondary="::",
primary="208.91.112.53",
retry=2,
secondary="208.91.112.51",
source_ip="0.0.0.0",
timeout=5)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := system.NewDns(ctx, "trname", &system.DnsArgs{
CacheNotfoundResponses: pulumi.String("disable"),
DnsCacheLimit: pulumi.Int(5000),
DnsCacheTtl: pulumi.Int(1800),
Ip6Primary: pulumi.String("::"),
Ip6Secondary: pulumi.String("::"),
Primary: pulumi.String("208.91.112.53"),
Retry: pulumi.Int(2),
Secondary: pulumi.String("208.91.112.51"),
SourceIp: pulumi.String("0.0.0.0"),
Timeout: pulumi.Int(5),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.System.Dns("trname", new()
{
CacheNotfoundResponses = "disable",
DnsCacheLimit = 5000,
DnsCacheTtl = 1800,
Ip6Primary = "::",
Ip6Secondary = "::",
Primary = "208.91.112.53",
Retry = 2,
Secondary = "208.91.112.51",
SourceIp = "0.0.0.0",
Timeout = 5,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.Dns;
import com.pulumi.fortios.system.DnsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var trname = new Dns("trname", DnsArgs.builder()
.cacheNotfoundResponses("disable")
.dnsCacheLimit(5000)
.dnsCacheTtl(1800)
.ip6Primary("::")
.ip6Secondary("::")
.primary("208.91.112.53")
.retry(2)
.secondary("208.91.112.51")
.sourceIp("0.0.0.0")
.timeout(5)
.build());
}
}
resources:
trname:
type: fortios:system:Dns
properties:
cacheNotfoundResponses: disable
dnsCacheLimit: 5000
dnsCacheTtl: 1800
ip6Primary: '::'
ip6Secondary: '::'
primary: 208.91.112.53
retry: 2
secondary: 208.91.112.51
sourceIp: 0.0.0.0
timeout: 5
Create Dns Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Dns(name: string, args: DnsArgs, opts?: CustomResourceOptions);
@overload
def Dns(resource_name: str,
args: DnsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Dns(resource_name: str,
opts: Optional[ResourceOptions] = None,
primary: Optional[str] = None,
interface: Optional[str] = None,
dns_cache_limit: Optional[int] = None,
ip6_primary: Optional[str] = None,
ip6_secondary: Optional[str] = None,
dns_over_tls: Optional[str] = None,
domains: Optional[Sequence[DnsDomainArgs]] = None,
dynamic_sort_subtable: Optional[str] = None,
fqdn_cache_ttl: Optional[int] = None,
fqdn_max_refresh: Optional[int] = None,
fqdn_min_refresh: Optional[int] = None,
get_all_tables: Optional[str] = None,
alt_primary: Optional[str] = None,
vdomparam: Optional[str] = None,
cache_notfound_responses: Optional[str] = None,
dns_cache_ttl: Optional[int] = None,
log: Optional[str] = None,
alt_secondary: Optional[str] = None,
protocol: Optional[str] = None,
retry: Optional[int] = None,
secondary: Optional[str] = None,
server_hostnames: Optional[Sequence[DnsServerHostnameArgs]] = None,
server_select_method: Optional[str] = None,
source_ip: Optional[str] = None,
ssl_certificate: Optional[str] = None,
timeout: Optional[int] = None,
interface_select_method: Optional[str] = None)
func NewDns(ctx *Context, name string, args DnsArgs, opts ...ResourceOption) (*Dns, error)
public Dns(string name, DnsArgs args, CustomResourceOptions? opts = null)
type: fortios:system:Dns
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DnsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DnsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dnsResource = new Fortios.System.Dns("dnsResource", new()
{
Primary = "string",
Interface = "string",
DnsCacheLimit = 0,
Ip6Primary = "string",
Ip6Secondary = "string",
DnsOverTls = "string",
Domains = new[]
{
new Fortios.System.Inputs.DnsDomainArgs
{
Domain = "string",
},
},
DynamicSortSubtable = "string",
FqdnCacheTtl = 0,
FqdnMaxRefresh = 0,
FqdnMinRefresh = 0,
GetAllTables = "string",
AltPrimary = "string",
Vdomparam = "string",
CacheNotfoundResponses = "string",
DnsCacheTtl = 0,
Log = "string",
AltSecondary = "string",
Protocol = "string",
Retry = 0,
Secondary = "string",
ServerHostnames = new[]
{
new Fortios.System.Inputs.DnsServerHostnameArgs
{
Hostname = "string",
},
},
ServerSelectMethod = "string",
SourceIp = "string",
SslCertificate = "string",
Timeout = 0,
InterfaceSelectMethod = "string",
});
example, err := system.NewDns(ctx, "dnsResource", &system.DnsArgs{
Primary: pulumi.String("string"),
Interface: pulumi.String("string"),
DnsCacheLimit: pulumi.Int(0),
Ip6Primary: pulumi.String("string"),
Ip6Secondary: pulumi.String("string"),
DnsOverTls: pulumi.String("string"),
Domains: system.DnsDomainArray{
&system.DnsDomainArgs{
Domain: pulumi.String("string"),
},
},
DynamicSortSubtable: pulumi.String("string"),
FqdnCacheTtl: pulumi.Int(0),
FqdnMaxRefresh: pulumi.Int(0),
FqdnMinRefresh: pulumi.Int(0),
GetAllTables: pulumi.String("string"),
AltPrimary: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
CacheNotfoundResponses: pulumi.String("string"),
DnsCacheTtl: pulumi.Int(0),
Log: pulumi.String("string"),
AltSecondary: pulumi.String("string"),
Protocol: pulumi.String("string"),
Retry: pulumi.Int(0),
Secondary: pulumi.String("string"),
ServerHostnames: system.DnsServerHostnameArray{
&system.DnsServerHostnameArgs{
Hostname: pulumi.String("string"),
},
},
ServerSelectMethod: pulumi.String("string"),
SourceIp: pulumi.String("string"),
SslCertificate: pulumi.String("string"),
Timeout: pulumi.Int(0),
InterfaceSelectMethod: pulumi.String("string"),
})
var dnsResource = new Dns("dnsResource", DnsArgs.builder()
.primary("string")
.interface_("string")
.dnsCacheLimit(0)
.ip6Primary("string")
.ip6Secondary("string")
.dnsOverTls("string")
.domains(DnsDomainArgs.builder()
.domain("string")
.build())
.dynamicSortSubtable("string")
.fqdnCacheTtl(0)
.fqdnMaxRefresh(0)
.fqdnMinRefresh(0)
.getAllTables("string")
.altPrimary("string")
.vdomparam("string")
.cacheNotfoundResponses("string")
.dnsCacheTtl(0)
.log("string")
.altSecondary("string")
.protocol("string")
.retry(0)
.secondary("string")
.serverHostnames(DnsServerHostnameArgs.builder()
.hostname("string")
.build())
.serverSelectMethod("string")
.sourceIp("string")
.sslCertificate("string")
.timeout(0)
.interfaceSelectMethod("string")
.build());
dns_resource = fortios.system.Dns("dnsResource",
primary="string",
interface="string",
dns_cache_limit=0,
ip6_primary="string",
ip6_secondary="string",
dns_over_tls="string",
domains=[{
"domain": "string",
}],
dynamic_sort_subtable="string",
fqdn_cache_ttl=0,
fqdn_max_refresh=0,
fqdn_min_refresh=0,
get_all_tables="string",
alt_primary="string",
vdomparam="string",
cache_notfound_responses="string",
dns_cache_ttl=0,
log="string",
alt_secondary="string",
protocol="string",
retry=0,
secondary="string",
server_hostnames=[{
"hostname": "string",
}],
server_select_method="string",
source_ip="string",
ssl_certificate="string",
timeout=0,
interface_select_method="string")
const dnsResource = new fortios.system.Dns("dnsResource", {
primary: "string",
"interface": "string",
dnsCacheLimit: 0,
ip6Primary: "string",
ip6Secondary: "string",
dnsOverTls: "string",
domains: [{
domain: "string",
}],
dynamicSortSubtable: "string",
fqdnCacheTtl: 0,
fqdnMaxRefresh: 0,
fqdnMinRefresh: 0,
getAllTables: "string",
altPrimary: "string",
vdomparam: "string",
cacheNotfoundResponses: "string",
dnsCacheTtl: 0,
log: "string",
altSecondary: "string",
protocol: "string",
retry: 0,
secondary: "string",
serverHostnames: [{
hostname: "string",
}],
serverSelectMethod: "string",
sourceIp: "string",
sslCertificate: "string",
timeout: 0,
interfaceSelectMethod: "string",
});
type: fortios:system:Dns
properties:
altPrimary: string
altSecondary: string
cacheNotfoundResponses: string
dnsCacheLimit: 0
dnsCacheTtl: 0
dnsOverTls: string
domains:
- domain: string
dynamicSortSubtable: string
fqdnCacheTtl: 0
fqdnMaxRefresh: 0
fqdnMinRefresh: 0
getAllTables: string
interface: string
interfaceSelectMethod: string
ip6Primary: string
ip6Secondary: string
log: string
primary: string
protocol: string
retry: 0
secondary: string
serverHostnames:
- hostname: string
serverSelectMethod: string
sourceIp: string
sslCertificate: string
timeout: 0
vdomparam: string
Dns Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Dns resource accepts the following input properties:
- Primary string
- Primary DNS server IP address.
- Alt
Primary string - Alternate primary DNS server. This is not used as a failover DNS server.
- Alt
Secondary string - Alternate secondary DNS server. This is not used as a failover DNS server.
- Cache
Notfound stringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - Dns
Cache intLimit - Maximum number of records in the DNS cache.
- Dns
Cache intTtl - Duration in seconds that the DNS cache retains information.
- Dns
Over stringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - Domains
List<Pulumiverse.
Fortios. System. Inputs. Dns Domain> - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Fqdn
Cache intTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- Fqdn
Max intRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- Fqdn
Min intRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Ip6Primary string
- Primary DNS server IPv6 address.
- Ip6Secondary string
- Secondary DNS server IPv6 address.
- Log string
- Local DNS log setting. Valid values:
disable
,error
,all
. - Protocol string
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - Retry int
- Number of times to retry (0 - 5).
- Secondary string
- Secondary DNS server IP address.
- Server
Hostnames List<Pulumiverse.Fortios. System. Inputs. Dns Server Hostname> - DNS server host name list. The structure of
server_hostname
block is documented below. - Server
Select stringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - Source
Ip string - IP address used by the DNS server as its source IP.
- Ssl
Certificate string - Name of local certificate for SSL connections.
- Timeout int
- DNS query timeout interval in seconds (1 - 10).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Primary string
- Primary DNS server IP address.
- Alt
Primary string - Alternate primary DNS server. This is not used as a failover DNS server.
- Alt
Secondary string - Alternate secondary DNS server. This is not used as a failover DNS server.
- Cache
Notfound stringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - Dns
Cache intLimit - Maximum number of records in the DNS cache.
- Dns
Cache intTtl - Duration in seconds that the DNS cache retains information.
- Dns
Over stringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - Domains
[]Dns
Domain Args - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Fqdn
Cache intTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- Fqdn
Max intRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- Fqdn
Min intRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Ip6Primary string
- Primary DNS server IPv6 address.
- Ip6Secondary string
- Secondary DNS server IPv6 address.
- Log string
- Local DNS log setting. Valid values:
disable
,error
,all
. - Protocol string
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - Retry int
- Number of times to retry (0 - 5).
- Secondary string
- Secondary DNS server IP address.
- Server
Hostnames []DnsServer Hostname Args - DNS server host name list. The structure of
server_hostname
block is documented below. - Server
Select stringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - Source
Ip string - IP address used by the DNS server as its source IP.
- Ssl
Certificate string - Name of local certificate for SSL connections.
- Timeout int
- DNS query timeout interval in seconds (1 - 10).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- primary String
- Primary DNS server IP address.
- alt
Primary String - Alternate primary DNS server. This is not used as a failover DNS server.
- alt
Secondary String - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache
Notfound StringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns
Cache IntegerLimit - Maximum number of records in the DNS cache.
- dns
Cache IntegerTtl - Duration in seconds that the DNS cache retains information.
- dns
Over StringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains
List<Dns
Domain> - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn
Cache IntegerTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn
Max IntegerRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn
Min IntegerRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - interface_ String
- Specify outgoing interface to reach server.
- ip6Primary String
- Primary DNS server IPv6 address.
- ip6Secondary String
- Secondary DNS server IPv6 address.
- log String
- Local DNS log setting. Valid values:
disable
,error
,all
. - protocol String
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry Integer
- Number of times to retry (0 - 5).
- secondary String
- Secondary DNS server IP address.
- server
Hostnames List<DnsServer Hostname> - DNS server host name list. The structure of
server_hostname
block is documented below. - server
Select StringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source
Ip String - IP address used by the DNS server as its source IP.
- ssl
Certificate String - Name of local certificate for SSL connections.
- timeout Integer
- DNS query timeout interval in seconds (1 - 10).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- primary string
- Primary DNS server IP address.
- alt
Primary string - Alternate primary DNS server. This is not used as a failover DNS server.
- alt
Secondary string - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache
Notfound stringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns
Cache numberLimit - Maximum number of records in the DNS cache.
- dns
Cache numberTtl - Duration in seconds that the DNS cache retains information.
- dns
Over stringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains
Dns
Domain[] - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn
Cache numberTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn
Max numberRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn
Min numberRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface string
- Specify outgoing interface to reach server.
- interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip6Primary string
- Primary DNS server IPv6 address.
- ip6Secondary string
- Secondary DNS server IPv6 address.
- log string
- Local DNS log setting. Valid values:
disable
,error
,all
. - protocol string
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry number
- Number of times to retry (0 - 5).
- secondary string
- Secondary DNS server IP address.
- server
Hostnames DnsServer Hostname[] - DNS server host name list. The structure of
server_hostname
block is documented below. - server
Select stringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source
Ip string - IP address used by the DNS server as its source IP.
- ssl
Certificate string - Name of local certificate for SSL connections.
- timeout number
- DNS query timeout interval in seconds (1 - 10).
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- primary str
- Primary DNS server IP address.
- alt_
primary str - Alternate primary DNS server. This is not used as a failover DNS server.
- alt_
secondary str - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache_
notfound_ strresponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns_
cache_ intlimit - Maximum number of records in the DNS cache.
- dns_
cache_ intttl - Duration in seconds that the DNS cache retains information.
- dns_
over_ strtls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains
Sequence[Dns
Domain Args] - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn_
cache_ intttl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn_
max_ intrefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn_
min_ intrefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface str
- Specify outgoing interface to reach server.
- interface_
select_ strmethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip6_
primary str - Primary DNS server IPv6 address.
- ip6_
secondary str - Secondary DNS server IPv6 address.
- log str
- Local DNS log setting. Valid values:
disable
,error
,all
. - protocol str
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry int
- Number of times to retry (0 - 5).
- secondary str
- Secondary DNS server IP address.
- server_
hostnames Sequence[DnsServer Hostname Args] - DNS server host name list. The structure of
server_hostname
block is documented below. - server_
select_ strmethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source_
ip str - IP address used by the DNS server as its source IP.
- ssl_
certificate str - Name of local certificate for SSL connections.
- timeout int
- DNS query timeout interval in seconds (1 - 10).
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- primary String
- Primary DNS server IP address.
- alt
Primary String - Alternate primary DNS server. This is not used as a failover DNS server.
- alt
Secondary String - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache
Notfound StringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns
Cache NumberLimit - Maximum number of records in the DNS cache.
- dns
Cache NumberTtl - Duration in seconds that the DNS cache retains information.
- dns
Over StringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains List<Property Map>
- Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn
Cache NumberTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn
Max NumberRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn
Min NumberRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface String
- Specify outgoing interface to reach server.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip6Primary String
- Primary DNS server IPv6 address.
- ip6Secondary String
- Secondary DNS server IPv6 address.
- log String
- Local DNS log setting. Valid values:
disable
,error
,all
. - protocol String
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry Number
- Number of times to retry (0 - 5).
- secondary String
- Secondary DNS server IP address.
- server
Hostnames List<Property Map> - DNS server host name list. The structure of
server_hostname
block is documented below. - server
Select StringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source
Ip String - IP address used by the DNS server as its source IP.
- ssl
Certificate String - Name of local certificate for SSL connections.
- timeout Number
- DNS query timeout interval in seconds (1 - 10).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Dns resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Dns Resource
Get an existing Dns resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DnsState, opts?: CustomResourceOptions): Dns
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alt_primary: Optional[str] = None,
alt_secondary: Optional[str] = None,
cache_notfound_responses: Optional[str] = None,
dns_cache_limit: Optional[int] = None,
dns_cache_ttl: Optional[int] = None,
dns_over_tls: Optional[str] = None,
domains: Optional[Sequence[DnsDomainArgs]] = None,
dynamic_sort_subtable: Optional[str] = None,
fqdn_cache_ttl: Optional[int] = None,
fqdn_max_refresh: Optional[int] = None,
fqdn_min_refresh: Optional[int] = None,
get_all_tables: Optional[str] = None,
interface: Optional[str] = None,
interface_select_method: Optional[str] = None,
ip6_primary: Optional[str] = None,
ip6_secondary: Optional[str] = None,
log: Optional[str] = None,
primary: Optional[str] = None,
protocol: Optional[str] = None,
retry: Optional[int] = None,
secondary: Optional[str] = None,
server_hostnames: Optional[Sequence[DnsServerHostnameArgs]] = None,
server_select_method: Optional[str] = None,
source_ip: Optional[str] = None,
ssl_certificate: Optional[str] = None,
timeout: Optional[int] = None,
vdomparam: Optional[str] = None) -> Dns
func GetDns(ctx *Context, name string, id IDInput, state *DnsState, opts ...ResourceOption) (*Dns, error)
public static Dns Get(string name, Input<string> id, DnsState? state, CustomResourceOptions? opts = null)
public static Dns get(String name, Output<String> id, DnsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alt
Primary string - Alternate primary DNS server. This is not used as a failover DNS server.
- Alt
Secondary string - Alternate secondary DNS server. This is not used as a failover DNS server.
- Cache
Notfound stringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - Dns
Cache intLimit - Maximum number of records in the DNS cache.
- Dns
Cache intTtl - Duration in seconds that the DNS cache retains information.
- Dns
Over stringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - Domains
List<Pulumiverse.
Fortios. System. Inputs. Dns Domain> - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Fqdn
Cache intTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- Fqdn
Max intRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- Fqdn
Min intRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Ip6Primary string
- Primary DNS server IPv6 address.
- Ip6Secondary string
- Secondary DNS server IPv6 address.
- Log string
- Local DNS log setting. Valid values:
disable
,error
,all
. - Primary string
- Primary DNS server IP address.
- Protocol string
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - Retry int
- Number of times to retry (0 - 5).
- Secondary string
- Secondary DNS server IP address.
- Server
Hostnames List<Pulumiverse.Fortios. System. Inputs. Dns Server Hostname> - DNS server host name list. The structure of
server_hostname
block is documented below. - Server
Select stringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - Source
Ip string - IP address used by the DNS server as its source IP.
- Ssl
Certificate string - Name of local certificate for SSL connections.
- Timeout int
- DNS query timeout interval in seconds (1 - 10).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Alt
Primary string - Alternate primary DNS server. This is not used as a failover DNS server.
- Alt
Secondary string - Alternate secondary DNS server. This is not used as a failover DNS server.
- Cache
Notfound stringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - Dns
Cache intLimit - Maximum number of records in the DNS cache.
- Dns
Cache intTtl - Duration in seconds that the DNS cache retains information.
- Dns
Over stringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - Domains
[]Dns
Domain Args - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Fqdn
Cache intTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- Fqdn
Max intRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- Fqdn
Min intRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Ip6Primary string
- Primary DNS server IPv6 address.
- Ip6Secondary string
- Secondary DNS server IPv6 address.
- Log string
- Local DNS log setting. Valid values:
disable
,error
,all
. - Primary string
- Primary DNS server IP address.
- Protocol string
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - Retry int
- Number of times to retry (0 - 5).
- Secondary string
- Secondary DNS server IP address.
- Server
Hostnames []DnsServer Hostname Args - DNS server host name list. The structure of
server_hostname
block is documented below. - Server
Select stringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - Source
Ip string - IP address used by the DNS server as its source IP.
- Ssl
Certificate string - Name of local certificate for SSL connections.
- Timeout int
- DNS query timeout interval in seconds (1 - 10).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- alt
Primary String - Alternate primary DNS server. This is not used as a failover DNS server.
- alt
Secondary String - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache
Notfound StringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns
Cache IntegerLimit - Maximum number of records in the DNS cache.
- dns
Cache IntegerTtl - Duration in seconds that the DNS cache retains information.
- dns
Over StringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains
List<Dns
Domain> - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn
Cache IntegerTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn
Max IntegerRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn
Min IntegerRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - interface_ String
- Specify outgoing interface to reach server.
- ip6Primary String
- Primary DNS server IPv6 address.
- ip6Secondary String
- Secondary DNS server IPv6 address.
- log String
- Local DNS log setting. Valid values:
disable
,error
,all
. - primary String
- Primary DNS server IP address.
- protocol String
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry Integer
- Number of times to retry (0 - 5).
- secondary String
- Secondary DNS server IP address.
- server
Hostnames List<DnsServer Hostname> - DNS server host name list. The structure of
server_hostname
block is documented below. - server
Select StringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source
Ip String - IP address used by the DNS server as its source IP.
- ssl
Certificate String - Name of local certificate for SSL connections.
- timeout Integer
- DNS query timeout interval in seconds (1 - 10).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- alt
Primary string - Alternate primary DNS server. This is not used as a failover DNS server.
- alt
Secondary string - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache
Notfound stringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns
Cache numberLimit - Maximum number of records in the DNS cache.
- dns
Cache numberTtl - Duration in seconds that the DNS cache retains information.
- dns
Over stringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains
Dns
Domain[] - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn
Cache numberTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn
Max numberRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn
Min numberRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface string
- Specify outgoing interface to reach server.
- interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip6Primary string
- Primary DNS server IPv6 address.
- ip6Secondary string
- Secondary DNS server IPv6 address.
- log string
- Local DNS log setting. Valid values:
disable
,error
,all
. - primary string
- Primary DNS server IP address.
- protocol string
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry number
- Number of times to retry (0 - 5).
- secondary string
- Secondary DNS server IP address.
- server
Hostnames DnsServer Hostname[] - DNS server host name list. The structure of
server_hostname
block is documented below. - server
Select stringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source
Ip string - IP address used by the DNS server as its source IP.
- ssl
Certificate string - Name of local certificate for SSL connections.
- timeout number
- DNS query timeout interval in seconds (1 - 10).
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- alt_
primary str - Alternate primary DNS server. This is not used as a failover DNS server.
- alt_
secondary str - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache_
notfound_ strresponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns_
cache_ intlimit - Maximum number of records in the DNS cache.
- dns_
cache_ intttl - Duration in seconds that the DNS cache retains information.
- dns_
over_ strtls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains
Sequence[Dns
Domain Args] - Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn_
cache_ intttl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn_
max_ intrefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn_
min_ intrefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface str
- Specify outgoing interface to reach server.
- interface_
select_ strmethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip6_
primary str - Primary DNS server IPv6 address.
- ip6_
secondary str - Secondary DNS server IPv6 address.
- log str
- Local DNS log setting. Valid values:
disable
,error
,all
. - primary str
- Primary DNS server IP address.
- protocol str
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry int
- Number of times to retry (0 - 5).
- secondary str
- Secondary DNS server IP address.
- server_
hostnames Sequence[DnsServer Hostname Args] - DNS server host name list. The structure of
server_hostname
block is documented below. - server_
select_ strmethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source_
ip str - IP address used by the DNS server as its source IP.
- ssl_
certificate str - Name of local certificate for SSL connections.
- timeout int
- DNS query timeout interval in seconds (1 - 10).
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- alt
Primary String - Alternate primary DNS server. This is not used as a failover DNS server.
- alt
Secondary String - Alternate secondary DNS server. This is not used as a failover DNS server.
- cache
Notfound StringResponses - Enable/disable response from the DNS server when a record is not in cache. Valid values:
disable
,enable
. - dns
Cache NumberLimit - Maximum number of records in the DNS cache.
- dns
Cache NumberTtl - Duration in seconds that the DNS cache retains information.
- dns
Over StringTls - Enable/disable/enforce DNS over TLS. Valid values:
disable
,enable
,enforce
. - domains List<Property Map>
- Search suffix list for hostname lookup. The structure of
domain
block is documented below. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- fqdn
Cache NumberTtl - FQDN cache time to live in seconds (0 - 86400, default = 0).
- fqdn
Max NumberRefresh - FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
- fqdn
Min NumberRefresh - FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interface String
- Specify outgoing interface to reach server.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip6Primary String
- Primary DNS server IPv6 address.
- ip6Secondary String
- Secondary DNS server IPv6 address.
- log String
- Local DNS log setting. Valid values:
disable
,error
,all
. - primary String
- Primary DNS server IP address.
- protocol String
- DNS protocols. Valid values:
cleartext
,dot
,doh
. - retry Number
- Number of times to retry (0 - 5).
- secondary String
- Secondary DNS server IP address.
- server
Hostnames List<Property Map> - DNS server host name list. The structure of
server_hostname
block is documented below. - server
Select StringMethod - Specify how configured servers are prioritized. Valid values:
least-rtt
,failover
. - source
Ip String - IP address used by the DNS server as its source IP.
- ssl
Certificate String - Name of local certificate for SSL connections.
- timeout Number
- DNS query timeout interval in seconds (1 - 10).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Supporting Types
DnsDomain, DnsDomainArgs
- Domain string
- DNS search domain list separated by space (maximum 8 domains)
- Domain string
- DNS search domain list separated by space (maximum 8 domains)
- domain String
- DNS search domain list separated by space (maximum 8 domains)
- domain string
- DNS search domain list separated by space (maximum 8 domains)
- domain str
- DNS search domain list separated by space (maximum 8 domains)
- domain String
- DNS search domain list separated by space (maximum 8 domains)
DnsServerHostname, DnsServerHostnameArgs
- Hostname string
- DNS server host name list separated by space (maximum 4 domains).
- Hostname string
- DNS server host name list separated by space (maximum 4 domains).
- hostname String
- DNS server host name list separated by space (maximum 4 domains).
- hostname string
- DNS server host name list separated by space (maximum 4 domains).
- hostname str
- DNS server host name list separated by space (maximum 4 domains).
- hostname String
- DNS server host name list separated by space (maximum 4 domains).
Import
System Dns can be imported using any of these accepted formats:
$ pulumi import fortios:system/dns:Dns labelname SystemDns
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/dns:Dns labelname SystemDns
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.