1. Packages
  2. Fortios
  3. API Docs
  4. system
  5. Dns
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.system.Dns

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    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)
    public Dns(String name, DnsArgs args)
    public Dns(String name, DnsArgs args, CustomResourceOptions options)
    
    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=[fortios.system.DnsDomainArgs(
            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=[fortios.system.DnsServerHostnameArgs(
            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

    The Dns resource accepts the following input properties:

    Primary string
    Primary DNS server IP address.
    AltPrimary string
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    AltSecondary string
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    CacheNotfoundResponses string
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    DnsCacheLimit int
    Maximum number of records in the DNS cache.
    DnsCacheTtl int
    Duration in seconds that the DNS cache retains information.
    DnsOverTls string
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    Domains List<Pulumiverse.Fortios.System.Inputs.DnsDomain>
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    DynamicSortSubtable string
    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 ].
    FqdnCacheTtl int
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    FqdnMaxRefresh int
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    FqdnMinRefresh int
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    InterfaceSelectMethod string
    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.
    ServerHostnames List<Pulumiverse.Fortios.System.Inputs.DnsServerHostname>
    DNS server host name list. The structure of server_hostname block is documented below.
    ServerSelectMethod string
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    SourceIp string
    IP address used by the DNS server as its source IP.
    SslCertificate 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.
    AltPrimary string
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    AltSecondary string
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    CacheNotfoundResponses string
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    DnsCacheLimit int
    Maximum number of records in the DNS cache.
    DnsCacheTtl int
    Duration in seconds that the DNS cache retains information.
    DnsOverTls string
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    Domains []DnsDomainArgs
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    DynamicSortSubtable string
    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 ].
    FqdnCacheTtl int
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    FqdnMaxRefresh int
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    FqdnMinRefresh int
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    InterfaceSelectMethod string
    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.
    ServerHostnames []DnsServerHostnameArgs
    DNS server host name list. The structure of server_hostname block is documented below.
    ServerSelectMethod string
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    SourceIp string
    IP address used by the DNS server as its source IP.
    SslCertificate 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.
    altPrimary String
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    altSecondary String
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    cacheNotfoundResponses String
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dnsCacheLimit Integer
    Maximum number of records in the DNS cache.
    dnsCacheTtl Integer
    Duration in seconds that the DNS cache retains information.
    dnsOverTls String
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    domains List<DnsDomain>
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    dynamicSortSubtable String
    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 ].
    fqdnCacheTtl Integer
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdnMaxRefresh Integer
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdnMinRefresh Integer
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    interfaceSelectMethod String
    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.
    serverHostnames List<DnsServerHostname>
    DNS server host name list. The structure of server_hostname block is documented below.
    serverSelectMethod String
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    sourceIp String
    IP address used by the DNS server as its source IP.
    sslCertificate 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.
    altPrimary string
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    altSecondary string
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    cacheNotfoundResponses string
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dnsCacheLimit number
    Maximum number of records in the DNS cache.
    dnsCacheTtl number
    Duration in seconds that the DNS cache retains information.
    dnsOverTls string
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    domains DnsDomain[]
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    dynamicSortSubtable string
    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 ].
    fqdnCacheTtl number
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdnMaxRefresh number
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdnMinRefresh number
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    interfaceSelectMethod string
    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.
    serverHostnames DnsServerHostname[]
    DNS server host name list. The structure of server_hostname block is documented below.
    serverSelectMethod string
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    sourceIp string
    IP address used by the DNS server as its source IP.
    sslCertificate 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_responses str
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dns_cache_limit int
    Maximum number of records in the DNS cache.
    dns_cache_ttl int
    Duration in seconds that the DNS cache retains information.
    dns_over_tls str
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    domains Sequence[DnsDomainArgs]
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    dynamic_sort_subtable str
    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_ttl int
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdn_max_refresh int
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdn_min_refresh int
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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_method str
    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[DnsServerHostnameArgs]
    DNS server host name list. The structure of server_hostname block is documented below.
    server_select_method str
    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.
    altPrimary String
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    altSecondary String
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    cacheNotfoundResponses String
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dnsCacheLimit Number
    Maximum number of records in the DNS cache.
    dnsCacheTtl Number
    Duration in seconds that the DNS cache retains information.
    dnsOverTls String
    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.
    dynamicSortSubtable String
    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 ].
    fqdnCacheTtl Number
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdnMaxRefresh Number
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdnMinRefresh Number
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    interfaceSelectMethod String
    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.
    serverHostnames List<Property Map>
    DNS server host name list. The structure of server_hostname block is documented below.
    serverSelectMethod String
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    sourceIp String
    IP address used by the DNS server as its source IP.
    sslCertificate 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.
    The following state arguments are supported:
    AltPrimary string
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    AltSecondary string
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    CacheNotfoundResponses string
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    DnsCacheLimit int
    Maximum number of records in the DNS cache.
    DnsCacheTtl int
    Duration in seconds that the DNS cache retains information.
    DnsOverTls string
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    Domains List<Pulumiverse.Fortios.System.Inputs.DnsDomain>
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    DynamicSortSubtable string
    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 ].
    FqdnCacheTtl int
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    FqdnMaxRefresh int
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    FqdnMinRefresh int
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    InterfaceSelectMethod string
    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.
    ServerHostnames List<Pulumiverse.Fortios.System.Inputs.DnsServerHostname>
    DNS server host name list. The structure of server_hostname block is documented below.
    ServerSelectMethod string
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    SourceIp string
    IP address used by the DNS server as its source IP.
    SslCertificate 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.
    AltPrimary string
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    AltSecondary string
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    CacheNotfoundResponses string
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    DnsCacheLimit int
    Maximum number of records in the DNS cache.
    DnsCacheTtl int
    Duration in seconds that the DNS cache retains information.
    DnsOverTls string
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    Domains []DnsDomainArgs
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    DynamicSortSubtable string
    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 ].
    FqdnCacheTtl int
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    FqdnMaxRefresh int
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    FqdnMinRefresh int
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    InterfaceSelectMethod string
    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.
    ServerHostnames []DnsServerHostnameArgs
    DNS server host name list. The structure of server_hostname block is documented below.
    ServerSelectMethod string
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    SourceIp string
    IP address used by the DNS server as its source IP.
    SslCertificate 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.
    altPrimary String
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    altSecondary String
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    cacheNotfoundResponses String
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dnsCacheLimit Integer
    Maximum number of records in the DNS cache.
    dnsCacheTtl Integer
    Duration in seconds that the DNS cache retains information.
    dnsOverTls String
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    domains List<DnsDomain>
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    dynamicSortSubtable String
    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 ].
    fqdnCacheTtl Integer
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdnMaxRefresh Integer
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdnMinRefresh Integer
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    interfaceSelectMethod String
    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.
    serverHostnames List<DnsServerHostname>
    DNS server host name list. The structure of server_hostname block is documented below.
    serverSelectMethod String
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    sourceIp String
    IP address used by the DNS server as its source IP.
    sslCertificate 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.
    altPrimary string
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    altSecondary string
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    cacheNotfoundResponses string
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dnsCacheLimit number
    Maximum number of records in the DNS cache.
    dnsCacheTtl number
    Duration in seconds that the DNS cache retains information.
    dnsOverTls string
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    domains DnsDomain[]
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    dynamicSortSubtable string
    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 ].
    fqdnCacheTtl number
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdnMaxRefresh number
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdnMinRefresh number
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    interfaceSelectMethod string
    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.
    serverHostnames DnsServerHostname[]
    DNS server host name list. The structure of server_hostname block is documented below.
    serverSelectMethod string
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    sourceIp string
    IP address used by the DNS server as its source IP.
    sslCertificate 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_responses str
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dns_cache_limit int
    Maximum number of records in the DNS cache.
    dns_cache_ttl int
    Duration in seconds that the DNS cache retains information.
    dns_over_tls str
    Enable/disable/enforce DNS over TLS. Valid values: disable, enable, enforce.
    domains Sequence[DnsDomainArgs]
    Search suffix list for hostname lookup. The structure of domain block is documented below.
    dynamic_sort_subtable str
    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_ttl int
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdn_max_refresh int
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdn_min_refresh int
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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_method str
    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[DnsServerHostnameArgs]
    DNS server host name list. The structure of server_hostname block is documented below.
    server_select_method str
    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.
    altPrimary String
    Alternate primary DNS server. (This is not used as a failover DNS server.)
    altSecondary String
    Alternate secondary DNS server. (This is not used as a failover DNS server.)
    cacheNotfoundResponses String
    Enable/disable response from the DNS server when a record is not in cache. Valid values: disable, enable.
    dnsCacheLimit Number
    Maximum number of records in the DNS cache.
    dnsCacheTtl Number
    Duration in seconds that the DNS cache retains information.
    dnsOverTls String
    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.
    dynamicSortSubtable String
    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 ].
    fqdnCacheTtl Number
    FQDN cache time to live in seconds (0 - 86400, default = 0).
    fqdnMaxRefresh Number
    FQDN cache maximum refresh time in seconds (3600 - 86400, default = 3600).
    fqdnMinRefresh Number
    FQDN cache minimum refresh time in seconds (10 - 3600, default = 60).
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish 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.
    interfaceSelectMethod String
    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.
    serverHostnames List<Property Map>
    DNS server host name list. The structure of server_hostname block is documented below.
    serverSelectMethod String
    Specify how configured servers are prioritized. Valid values: least-rtt, failover.
    sourceIp String
    IP address used by the DNS server as its source IP.
    sslCertificate 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.
    fortios logo
    Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse