I am trying to use a IP SLA for HTTP on my Cisco ISR 4321 router to check if a website is reachable. The challenge is that I need to do that in a frontdoor VRF. I have configured
ip name-server vrf INET 8.8.8.8
ip domain-lookup vrf INET
ip sla 10
http raw http://ifconfig.co name-server 8.8.8.8 cache disable
vrf INET
http-raw-request
GET / HTTP/1.0\r\n
exit
threshold 2
timeout 2
ip sla schedule 10 life forever start-time now
However, the result is a DNS error
IPSLAs Latest Operation Summary
Codes: * active, ^ inactive, ~ pending
All Stats are in milliseconds. Stats with u are in microseconds
ID Type Destination Stats Return Last
Code Run
-----------------------------------------------------------------------
*10 http 0.0.0.0 RTT=0 DNS query e 25 seconds ag
rror o
DNS is however working in that VRF
#ping vrf INET ifconfig.co
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 104.18.39.101, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 13/18/34 ms
Any idea what I'm missing here?