cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
2532
Views
14
Helpful
25
Replies

DNS

Hi all, 

I'm trying to create IP SLA for DNS .. I can ping the ip from cisco and can get trace for it . but when i show the ip sla for DNS i get error return code 

Latest operation start time: 20:44:34 UTC Sun Apr 24 2016
Latest operation return code: Timeout
Number of successes: 0
Number of failures: 1
Operation time to live: Forever

Any advice ... Thanks in advance  

2 Accepted Solutions

Accepted Solutions

Philip D'Ath
VIP Alumni
VIP Alumni

Can you please show us your config which is not working.

A typical DNS test I would use is:

ip sla 1
dns www.google.com name-server 8.8.8.8 source-ip a.b.c.d

View solution in original post

You need name resolution to work first.  So add the "name-server" lines.  You can then do a test with "telnet" to make sure it connects,  And then all going well, the http sla will work.

View solution in original post

25 Replies 25

Philip D'Ath
VIP Alumni
VIP Alumni

Can you please show us your config which is not working.

A typical DNS test I would use is:

ip sla 1
dns www.google.com name-server 8.8.8.8 source-ip a.b.c.d

Thank.. 

Now i'm trying to create the http IP sla 

ip sla 1
http get http://www.msn.com/en-ae/ name-server 8.8.8.8

I get this error ..

IPSLA operation id: 1
Latest RTT: 281 milliseconds
Latest operation start time: 08:56:09 UTC Mon Apr 25 2016
Latest operation return code: Http Error
Latest DNS RTT: 94 ms
Latest TCP Connection RTT: 93 ms
Latest HTTP Transaction RTT: 94 ms
Number of successes: 0
Number of failures: 5
Operation time to live: Forever

Any advice please .. Thanks in advance 

Try requesting a specific page.  A url like that is likely to return a 302 or something other than a successful result.  A good test of something specific is retrieving an image or logo off a page.

Thanks, Can you give small example please .. Also the https pages like facebook and so supporting here with this IP SLA ? Thanks in advance 

What is you companies web site url?

this one .. http://www.btc.com.sa/

ip sla 1
  http get http://www.btc.com.sa/flash/AC_RunActiveContent.js name-server 8.8.8.8

The Same 

IPSLA operation id: 1
Latest RTT: 571 milliseconds
Latest operation start time: 10:28:55 UTC Mon Apr 25 2016
Latest operation return code: Http Error
Latest DNS RTT: 363 ms
Latest TCP Connection RTT: 103 ms
Latest HTTP Transaction RTT: 105 ms
Number of successes: 0
Number of failures: 1
Operation time to live: Forever

Any advice ... Thanks in advance 

From the router can you:

telnet www.btc.com.sa 80

and get a result?

S.W#telnet www.btc.com.sa 80
% Bad IP address or host name

This what i get ...

Any update please ? Thanks in advance 

That means you don't have name resolution configured correctly on the router.  Have you either got a DNS view defined or some name-server lines?

ip name-server 8.8.8.8 8.8.4.4

Thanks .. If i have DNS server with ip  x.x.x.x .. Then i have to create ( ip name-server  x.x.x.x ) only ? Then i apply this 

ip sla 1
  http get http://www.btc.com.sa/flash/AC_RunActiveContent.js name-server x.x.x.x

You need name resolution to work first.  So add the "name-server" lines.  You can then do a test with "telnet" to make sure it connects,  And then all going well, the http sla will work.

Review Cisco Networking for a $25 gift card