Forum Discussion

dstogsdill_2492's avatar
dstogsdill_2492
Icon for Nimbostratus rankNimbostratus
Nov 04, 2012

GTM iRule - cname

Hi all,

 

I'm trying to test a simple iRule to return a cname for a wide IP. I looked at the cname Wiiki on dev central and my syntax looks correct, however, it is not returning the cname response. Ultimatly this will be used in a more complex iRule but I need to verify this works first.

 

Here is the simple iRule:

 

 

when DNS_REQUEST {

 

cname "test.test.com"

 

}

 

When i do an nslookup all I get in return is the name of the host I queried

 

 

Any ideas what I'm missing for this?

 

 

Btw, if I substitute the cname command for host it works.

 

i.e.

 

when DNS_REQUEST {

 

host 10.10.10.10

 

}

 

 

 

18 Replies