dns-fallback-policy

This command configures the DNS Fallback Policy table, which lets you configure up to two DNS fallback policies, each for a different traffic type (IPv4 or IPv6).

Syntax

(config-network)# dns-fallback-policy <Index>
(dns-fallback-policy-<Index>)# 

Command

Description

Index

Defines the table row index.

rule1 {global-dns-ipv4|global-dns-ipv6| none|oam-if-ipv4|oam-if-ipv6}

Defines the first DNS fallback rule.

rule2 {global-dns-ipv4|global-dns-ipv6| none|oam-if-ipv4|oam-if-ipv6}

Defines the second DNS fallback rule if rule 1 fails (or configured to none).

rule3 {global-dns-ipv4|global-dns-ipv6| none|oam-if-ipv4|oam-if-ipv6}

Defines the third DNS fallback rule if rule 2 fails (or configured to none).

rule4 {global-dns-ipv4|global-dns-ipv6| none|oam-if-ipv4|oam-if-ipv6}

Defines the fourth DNS fallback rule if rule 3 fails (or configured to none)

type {ipv4|ipv6}

Defines the type of traffic (IP version) for which you want to apply the DNS Fallback policy

Command Mode

Privileged User

Example

This example configures a DNS Fallback policy for IPv4 traffic with two rules - device tries the DNS server of the OAM IPv4 interface and if that fails, it tries the global IP v4 DNS servers:

(config-network)# dns-fallback-policy 0
(dns-fallback-policy-0)# type ipv4
(dns-fallback-policy-0)# oam-if-ipv4
(dns-fallback-policy-0)# global-dns-ipv4
(dns-fallback-policy-0)# exit