dns
Syntax
dns resolve-domain <HOSTNAME> name-server <IPV4-ADDR-DNS-SERVER>
[source {<IPV4-ADDR> | <IFNAME>}] [probe <PROBE-INTERVAL>]
Description
Configures DNS as the IP-SLA test mechanism.
Command context
config-ip-sla-<IP-SLA-NAME>
Parameters
resolve-domain <HOSTNAME>
Specifies the FQDN for the IP-SLA test.
name-server <IPV4-ADDR-DNS-SERVER>
Specifies the DNS server for destination hostname resolution.
[source {<A.B.C.D> | <IFNAME>}]
Selects the source IPv4 address for SLA probes or the source interface to use for sending IP-SLA probes.
<PROBE-INTERVAL>
Probe interval in seconds. Range: 5 to 604800.
Authority
Administrators or local user group members with execution rights for this command.
Examples
switch(config)# ip-sla test switch(config-ip-sla-test)# dns resolve-target host2.com name-server 3.3.3.3 switch(config-ip-sla-test)# dns resolve-target host2.com name-server 3.3.3.3 source 2.2.2.2 switch(config-ip-sla-test)# dns resolve-target host2.com name-server 3.3.3.3 probe-interval 80 switch(config-ip-sla-test)# dns resolve-target host2.com name-server 3.3.3.3 source 2.2.2.2 probe-interval 80 switch(config-ip-sla-test)#