Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.0
Download PDF
Copy Link

system dns-database

Introduction.

config system dns-database
    edit {name}
    # Configure DNS databases.
        set name {string}   Zone name. size[35]
        set status {enable | disable}   Enable/disable this DNS zone.
        set domain {string}   Domain name. size[255]
        set allow-transfer {string}   DNS zone transfer IP address list.
        set type {master | slave}   Zone type (master to manage entries directly, slave to import entries from other zones).
                master  Master DNS zone, to manage entries directly.
                slave   Slave DNS zone, to import entries from other DNS zones.
        set view {shadow | public}   Zone view (public to serve public clients, shadow to serve internal clients).
                shadow  Shadow DNS zone to serve internal clients.
                public  Public DNS zone to serve public clients.
        set ip-master {ipv4 address any}   IP address of master DNS server. Entries in this master DNS server and imported into the DNS zone.
        set primary-name {string}   Domain name of the default DNS server for this zone. size[255]
        set contact {string}   Email address of the administrator for this zone.
		You can specify only the username (e.g. admin) or full email address (e.g. admin@test.com) 
		When using a simple username, the domain of the email will be this zone. size[255]
        set ttl {integer}   Default time-to-live value for the entries of this DNS zone (0 - 2147483647 sec, default = 86400). range[0-2147483647]
        set authoritative {enable | disable}   Enable/disable authoritative zone.
        set forwarder {string}   DNS zone forwarder IP address list.
        set source-ip {ipv4 address}   Source IP for forwarding to DNS server.
        config dns-entry
            edit {id}
            # DNS entry.
                set id {integer}   DNS entry ID. range[0-4294967295]
                set status {enable | disable}   Enable/disable resource record status.
                set type {option}   Resource record type.
                        A       Host type.
                        NS      Name server type.
                        CNAME   Canonical name type.
                        MX      Mail exchange type.
                        AAAA    IPv6 host type.
                        PTR     Pointer type.
                        PTR_V6  IPv6 pointer type.
                set ttl {integer}   Time-to-live for this entry (0 to 2147483647 sec, default = 0). range[0-2147483647]
                set preference {integer}   DNS entry preference, 0 is the highest preference (0 - 65535, default = 10) range[0-65535]
                set ip {ipv4 address any}   IPv4 address of the host.
                set ipv6 {ipv6 address}   IPv6 address of the host.
                set hostname {string}   Name of the host. size[255]
                set canonical-name {string}   Canonical name of the host. size[255]
            next
    next
end

system dns-database

Introduction.

config system dns-database
    edit {name}
    # Configure DNS databases.
        set name {string}   Zone name. size[35]
        set status {enable | disable}   Enable/disable this DNS zone.
        set domain {string}   Domain name. size[255]
        set allow-transfer {string}   DNS zone transfer IP address list.
        set type {master | slave}   Zone type (master to manage entries directly, slave to import entries from other zones).
                master  Master DNS zone, to manage entries directly.
                slave   Slave DNS zone, to import entries from other DNS zones.
        set view {shadow | public}   Zone view (public to serve public clients, shadow to serve internal clients).
                shadow  Shadow DNS zone to serve internal clients.
                public  Public DNS zone to serve public clients.
        set ip-master {ipv4 address any}   IP address of master DNS server. Entries in this master DNS server and imported into the DNS zone.
        set primary-name {string}   Domain name of the default DNS server for this zone. size[255]
        set contact {string}   Email address of the administrator for this zone.
		You can specify only the username (e.g. admin) or full email address (e.g. admin@test.com) 
		When using a simple username, the domain of the email will be this zone. size[255]
        set ttl {integer}   Default time-to-live value for the entries of this DNS zone (0 - 2147483647 sec, default = 86400). range[0-2147483647]
        set authoritative {enable | disable}   Enable/disable authoritative zone.
        set forwarder {string}   DNS zone forwarder IP address list.
        set source-ip {ipv4 address}   Source IP for forwarding to DNS server.
        config dns-entry
            edit {id}
            # DNS entry.
                set id {integer}   DNS entry ID. range[0-4294967295]
                set status {enable | disable}   Enable/disable resource record status.
                set type {option}   Resource record type.
                        A       Host type.
                        NS      Name server type.
                        CNAME   Canonical name type.
                        MX      Mail exchange type.
                        AAAA    IPv6 host type.
                        PTR     Pointer type.
                        PTR_V6  IPv6 pointer type.
                set ttl {integer}   Time-to-live for this entry (0 to 2147483647 sec, default = 0). range[0-2147483647]
                set preference {integer}   DNS entry preference, 0 is the highest preference (0 - 65535, default = 10) range[0-65535]
                set ip {ipv4 address any}   IPv4 address of the host.
                set ipv6 {ipv6 address}   IPv6 address of the host.
                set hostname {string}   Name of the host. size[255]
                set canonical-name {string}   Canonical name of the host. size[255]
            next
    next
end