cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1081
Views
0
Helpful
1
Replies

Using IP SLA to withdraw a static route based on DNS query

jkaras
Level 1
Level 1

I have seen numerous instances in which a static route can be withdrawn using an IP SLA ICMP Echo configuration. 

I have a slightly different use-case.  I would like the static route to be withdrawn if the IP SLA DNS query for a hostname does not return a valid IP address.  Is this possible?

1 Reply 1

Not applicable

Hi jkaras,

Yes, it is possible to track a DNS response. You'll find the config in the attachment. Please replace

the variables with your own values.

Because track's 1 state is UP

PE1#sh track 1
Track 1
  Response Time Reporter 1 state
  State is Up
    2 changes, last change 00:05:46
  Latest operation return code: OK
  Latest RTT (millisecs) 44
  Tracked by:
    STATIC-IP-ROUTING 0

the static route is installed in the routing table

PE1#sh ip route static
     1.0.0.0/32 is subnetted, 1 subnets
S       1.1.1.1 is directly connected, Null0

Please let me know if you need more help related to this topic.

Kind regards,

Marius