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

}

Can you show full nslookup of both cases? is it nslookup directly against the listener?

Better yet, use dig to debug it… You getbbetter and more detailed output on he queries and responses. Nslookup was deprecated about 10+ years ago..

H

Thanks for the reply Mohamed. here is the nslookup output. test1.test.com is the Wide IP with the CNAME irule applied. BTW, i am using a lab GTM hence the test.com domain.

> server 10.226.133.194

Default Server: [10.226.133.194]

Address: 10.226.133.194

> test1.test.com

Server: [10.226.133.194]

Address: 10.226.133.194

Name: test1.test.com

Here is the output when I change the iRule to return a host address rather than a cname.

> test1.test.com

Server: [10.226.133.194]

Address: 10.226.133.194

Name: test1.test.com

Addresses: 10.10.10.10

10.10.10.10

And here are the iRules:

when DNS_REQUEST {

cname “test.test.com”

}

when DNS_REQUEST {

host 10.10.10.10

}

Hamish, I will try out dig and see what info i get back. Thanks!

Here is the dig output. It shows the cname was sent so i’m not sure why nslookup doesn’t, other than as Hamish said that it’s depreciated…One thing does look off though. The response doesn’t show the resolution of the cname response. The second output below shows a query to a cname created through ZoneRunner, there are obvious differences.

H:\>dig @10.226.133.194 test1.test.com. a

; <<>> DiG 9.9.2 <<>> @10.226.133.194 test1.test.com. a

; (1 server found)

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7526

;; flags: qr aa rd ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags:; udp: 4096

;; QUESTION SECTION:

;test1.test.com. IN A

;; ANSWER SECTION:

test1.test.com. 0 IN CNAME test.test.com.

H:\>dig @10.226.133.194 test2.test.com. a

; <<>> DiG 9.9.2 <<>> @10.226.133.194 test2.test.com. a

; (1 server found)

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6554

;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 2

;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags:; udp: 4096

;; QUESTION SECTION:

;test2.test.com. IN A

;; ANSWER SECTION:

test2.test.com. 300 IN CNAME test.test.com.

test.test.com. 300 IN A 10.10.10.10

;; AUTHORITY SECTION:

test.com. 300 IN NS ns1.lab.company.com.

;; ADDITIONAL SECTION:

ns1.lab.company.com. 300 IN A 10.226.133.194

The are two diffeent DNS servers… The first is GTM (Not DNS Express or DNS cache service) but GTM module itself. The second is BIND runnning in Linux.

Looks like you first query worked, right? It return:

;; ANSWER SECTION:

test1.test.com. 0 IN CNAME test.test.com.

Whcih is valid response and which a real DNS server, unlike dig/nslookup, would know to requry to follow the aliases chain.

What is the probme you are trying to solve?

What version of BIGIP GTM is this?

There is a bug related to CNAME queries to wide_ips though… What exactly do you need to do, and why?

The ultimate goal is to provide an ANAME like service, which is to allow CNAME like behavior for root zone queries. ANAMES are not an RFC standard so I may be looking at this all wrong but since I’m testing I want to make sure I’m using the correct syntax and getting a proper return value. Why? This is needed to host Domains using Amazon Web Services.

Since I’m not getting the same returned values as I would when querying a Bind CNAME I’m assuming i’m either using the CNAME method incorrectly or i’m hitting a bug as you suggested. I’m running version 11.1 HF4, although, i’m planning an upgrade to 11.2 in early December.

What i’m uncertain about is if I can even return a CNAME in response to a root zone query which is why i’m testing in a lab. If this is not possible I may need to use a combination of a perl script and iFile.

BTW, at this point i’m testing with host names NOT root zones. I figured I need to get a valid reply before testing with root zones.

You’re iRule feels to fake… this a wide_ip, so it’s some DNS name, say example.com

What would an iRule that says, for any request, respond with this CNAME… why is it a wide_ip then?

I understand you’re just testing, but it is confusing for us, external people trying to help you out, to understand…

You project sounds intersting, though I dont underdtand it:) care to explian a bit more?

Explain what the wide_ip if any, would be used for, then what the iRules job would be.

Do you mean to interespt quey_type == CNAME, and some other query_types, and act on them, while letting GTM handle A or ANY types?

I’ve never heard of ANAME… will be looking it up soon though.

FYI, the bug I run into is:

Bug 391315 - GTM: CNAME qtype mishandled when pool iRule cmd used

and has been resolved in 11.2.0 HF2

Hi … had a similar request … here is the txt version of the write up .. HTH

GTM Configuration to allow:

1. Monitor a remote site (eg: AWS_FQDN/health.html) via FQDN (not IP Address)

a. If health is good then serve up a CNAME

b. If the health is bad then serve up a IP address from a GTM Pool

The above requirement can be accomplished by assigning an iRule to the GTM WideIP, and calling on an External Monitor to check the availability of the Cloud based service.

The Steps are:

• Create a Server object to reference the AWS Cloud

a. This will be used in the GTM Pool

i. The IP Address is not important as the External Monitor will do a dynamic lookup

• Create an External Monitor to check the availability of the Cloud service

a. The Health monitor will control the GTM Pool status

(based on using CURL -s https://aws.amazon.com)

• Assign an CNAME iRule to a GTM Wide-IP with pool members

1) AWS Cloud Pool and

2) ‘GTM owned’ virtual server pool

== Step 1: ==

Create the AWS ‘Generic Server Object’, which will be used in the GTM Pool ‘gtmpool_AWS’

== Step 2:==

Create an External Monitor to check the availability of the Cloud service

• The “Arguments” form the basis of the $3 variables within the monitor script

• The RESPONSE_CHECK is used to verify the successful connection to the site in $3

• The DEBUG variable is used to enable/disable logging to /var/log/ltm

o Set to 1 initially to see if check it successful

o Manually run CURL command without the ‘grep’ to see what the site returns

Part of Step 2 is to create an External health monitor.

A good reference on EAV is on DevCentral: https://devcentral.f5.com/Tutorials…itors.aspx

The External monitor we will use, makes use of CURL to a 443 site.

We will look for the tag, which shows the DNS lookup and the connection was successful<br /> • curl -s <a href=“https://${MY_FQDN”>https://${MY_FQDN</a>} | grep “<title>” 2>&1 > /dev/null</p> <p><br /> External GTM Monitor file : cloud_dns_monitor<br /> ---------------------------------------------</p> <p>!/bin/bash</p> <p> These arguments are normally supplied automatically based on the<br /> pool members that the EAV is assigned to<br /> $1 = IP (::ffff:nnn.nnn.nnn.nnn notation or hostname)<br /> $2 = port (decimal, host byte order)<br /> <br /> Our EAV will not really use $1 or $2, as it is based off CURL<br /> dynamically resolving the host, and looking at the response.</p> <p> Log debug to /var/log/ltm<br /> Check if a variable named DEBUG exists from the monitor definition<br /> DEBUG=0 or 1 must be set in the EAV GUI<br /> RESPONSE_CHECK must be set in the EAV GUI</p> <p><br /> if [ -n “$DEBUG” ]<br /> then<br /> if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: \$DEBUG: $DEBUG” | logger -p local0.debug; fi<br /> fi</p> <p> Remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)<br /> We are not actually using it in this monitor<br /> IP=`echo $1 | sed ‘s/::ffff://’`</p> <p> Save the port for use in the shell command<br /> We are not actually using it in this monitor<br /> PORT=$2</p> <p> Save the FQDN of the server for use in the shell command<br /> $3 is supplied in the GUI of the EAV<br /> MY_FQDN=$3</p> <p> Check if there is a prior instance of the monitor running<br /> pidfile=“/var/run/`basename $0`.$IP.$PORT.pid”<br /> if [ -f $pidfile ]<br /> then<br /> kill -9 `cat $pidfile` > /dev/null 2>&1<br /> echo “EAV `basename $0`: exceeded monitor interval, needed to kill ${MY_FQDN} with PID `cat $pidfile`” | logger -p local0.error</p> <p>fi</p> <p> Add the current PID to the pidfile<br /> echo “$$” > $pidfile</p> <p> Debug<br /> if [ $DEBUG -eq 1 ]<br /> then<br /> Customize the log statement here if you want to log the command run or the output<br /> echo “EAV `basename $0`: Running for ${MY_FQDN} using CURL to <a href=“https://${MY_FQDN”>https://${MY_FQDN</a>}” | logger -p local0.debug</p> <p>fi</p> <p><br /> Customize the shell command to run here. <br /> Use $IP and $PORT to specify which host/port to perform the check against<br /> Modify the netcat example portion of the line:<br /> curl -s –I <a href=“http://${MY_FQDN”>http://${MY_FQDN</a>} | grep 200<br /> And leave this portion as is:<br /> ‘2>&1 > /dev/null’<br /> The above code redirects stderr and stdout to nothing to ensure we<br /> don’t errantly mark the pool member up</p> <p> Send the request and check the response<br /> eg: curl -s -I <a href=“http://${MY_FQDN”>http://${MY_FQDN</a>} | grep 200 2>&1 > /dev/null<br /> We will look for the <title> tag, which shows the DNS lookup and the<br /> connection was successful<br /> RESPONSE_CHECK must be set in the EAV GUI<br /> curl -s <a href=“http://${MY_FQDN”>http://${MY_FQDN</a>} | grep “<title>Amazon Web Services” 2>&1 > /dev/null

curl -s } | grep “${RESPONSE_CHECK}” 2>&1 > /dev/null

Check if the command ran successfully

Note that any standard output will result in the script execution being stopped

So do any cleanup before echoing to STDOUT

if [ $? -eq 0 ]

then

rm -f $pidfile

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Succeeded for ${MY_FQDN}” | logger -p local0.debug; fi

echo “UP”

else

rm -f $pidfile

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Failed for ${MY_FQDN}” | logger -p local0.debug; fi

fi

----end-----

== Step 3 ==

Create an GTM Wide-IP

- The pool members will be (1) the AWS Cloud Pool and (2) the ‘GTM owned’ virtual servers

Attach the iRule to the WideIP , that returns

- the CNAME, or

- the IP address of the GTM pool member in ‘gtmpool_CBA’

iRule: AWS-CNAME-return

-----------------------

when DNS_REQUEST {

GTM External Monitor will determine the health of gtmpool_AWS

based on DNS lookup, and HTTP GET

if { [ active_members gtmpool_AWS] > 0 } {

log local0. "Positive External check to aws.amazon.com using CURL,

puts ‘gtmpool_AWS’ as Active -- therefore Returning cname aws.amazon.com"

cname aws.amazon.com

} else {

GTM monitor will determine the health of internal

internal pool gtmpool_CBA based on known IP, and HTTP GET

if { [ active_members gtmpool_ACME] > 0 } {

log local0. "External health check to aws.amazon.com failed -- BUT

there are active pool members in ‘gtmpool_ACME’ -- therefore

Responding with local address from ‘gtmpool_ACME’"

pool gtmpool_ACME

}

}

}

--end ---

Details of the iRule components can be found at : DevCentral

• active_members : Returns the number or list of active members in the specified pool.

• cname : Causes the specified name to be sent as a CNAME response.

• pool : Causes the system to load balance traffic to the specified pool or pool member regardless of monitor status.

GbbAus,

This is excellent and I think it’s a great place to start. Have you applied this to a root record? i.e. example.com

There is no RFC for returning a CNAME when the client sends an A query to a root record so i’m unsure if the client will even accept a CNAME in response and act upon it. Amazon returns an IP address which is what I think I’m going to have to do.

Here is an explanation of ANAME’s and what I’m trying to solve with the GTM.

http://www.dnsmadeeasy.com/press/dns-made-easy-introduces-aname-records/

There is no RFC for returning a CNAME when the client sends an A query to a root record so i’m unsure if the client will even accept a CNAME in response and act upon it.

I dont know much about this.. but I feel like saying;

Is there any RFC saying any different? Any RFC stating that a DNS query for “root zone” can not be answered with a CNAME?

I was told by my F5 rep that the RFC states that a root record query can only be answered with an A record. The link i posted previously states pretty much the same thing.

Anyways, I was able to come with a solution. Since the application will be hosted within AWS and all i need to do is host the domain I really have no need to check the health of the application. Essentially, i just need to provide DNS resolution and let AWS provide the global load balancing.

I ended writing a simple shell script to lookup the IP’s of the AWS Alias, output the IP’s to a file and then update an iFile. The iRule then uses the iFile to return the IP as an A record.

This would be much simpler if I could have used the Resolve::Lookup iRule method on the GTM, however, it only seems to be available within the LTM Module.

Anyways, for anyone who is interested here is the script. I initially created the iFile record via the gui so this script just updates the existing iFile.

I use dig to get the IP’s. Amazon returns two IP’s so I remove the second listed IP. I then have to remove the new line and trailing white spaces before outputting to a file. This is essential as the iRule Host command doesn’t like any white spaces. I then issue the TMSH commands to update the iFile.

I have to thank the guys on this post for giving me the syntax to specify a file on the local file system when modifying the iFile. I could not find any documentation on AskF5 for this.

I will end up rewriting this to return both IP’s and error checking but this works for now.

-----------------------------------------------------------------------------------------------

!/bin/bash

dig +short @8.8.8.8 node.amazonaws.com IN A | sed ‘$d’ | tr ‘\n’ ’ ’ | sed ‘s/ $//’ > /config/scripts/ag_aname.txt

tmsh modify /sys file ifile ag_aname.txt source-path file:/config/scripts/ag_aname.txt

tmsh save /sys config >>/dev/null

---------------------------------------------------------------------------------------------

And here is the iRule

------------------------------------------------------------------------------------------

when DNS_REQUEST {

set ifileContent [ifile get “/Common/ag_aname”]

host $ifileContent

log local0. $ifileContent

unset ifileContent

}

If anyone has a simpler way of doing this I would love to hear it.

Not directly answering the thread, but need to repost my EAV posted above (original copy/paste issue.)

Anyway, here is the EAV based on 2 AWS DNS server lookups, to avoid resolver delays if down

Resolve name to IP address

Do a curl against the site to see if it is up .. based on DNS lookup above

* If it is up, then iRule will return CNAME to send client tot he cloud

If curl fails, means the cloud site is down, and then irule will return wideip from GTM pool for internal resorce

==================

!/bin/bash

For Bip-IP v11 use GUI to import EAV

For Big-IP pre v11

Save as /usr/bin/monitors/custom_monitor.bash

or

Save as /config/monitors/custom_monitor.bash

Make executable using chmod 755 custom_monitor.bash

The below arguments are supplied automatically

based on the pool members that the EAV is assigned to

$1 = IP (::ffff:nnn.nnn.nnn.nnn notation or hostname)

$2 = port (decimal, host byte order)

Log debug to /var/log/ltm

Check if a variable named DEBUG exists from the monitor definition

The following must be set in the EAV GUI

DEBUG=0 or 1

RESPONSE_CHECK

FQDN_TO_RESOLVE

DNS_SERVER_1

DNS_SERVER_2

if [ -n “$DEBUG” ]

then

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: \$DEBUG: $DEBUG” | logger -p local0.debug; fi

fi

Remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)

We are not actually using it in this monitor

IP=`echo $1 | sed ‘s/::ffff://’`

Save the port for use in the shell command

PORT=$2

Check if there is a prior instance of the monitor running

pidfile=“/var/run/`basename $0`.$IP.$PORT.pid”

if [ -f $pidfile ]

then

kill -9 `cat $pidfile` > /dev/null 2>&1

echo “EAV `basename $0`: exceeded monitor interval, needed to kill ${IP}:${PORT} with PID `cat $pidfile`” | logger -p local0.error

fi

Add the current PID to the pidfile

echo “$$” > $pidfile

Resolve name to IP address

QUERY_RESULT=$(dig @${DNS_SERVER_1} +time=1 +tries=1 +short ${FQDN_TO_RESOLVE} IN A | head -n1)

if [[ $QUERY_RESULT =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Succeeded for ${MY_FQDN} from ${DNS_SERVER_1}” | logger -p local0.debug; fi

Do a curl against the site to see if it is up .. based on DNS lookup above

curl -fNs ${QUERY_RESULT} --header ‘Host: ${FQDN_TO_RESOLVE}’ | grep -i “${RESPONSE_CHECK}” 2>&1 > /dev/null

if [ $? -eq 0 ]

then

echo “up”

fi

rm -f $pidfile

else

QUERY_RESULT=$(dig @${DNS_SERVER_2} +time=1 +tries=1 +short ${FQDN_TO_RESOLVE} IN A | head -n1)

if [[ $QUERY_RESULT =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Succeeded for ${MY_FQDN} from ${DNS_SERVER_2}” | logger -p local0.debug; fi

curl -fNs ${QUERY_RESULT} --header ‘Host: ${FQDN_TO_RESOLVE}’ | grep -i “${RESPONSE_CHECK}” 2>&1 > /dev/null

if [ $? -eq 0 ]

then

echo “up”

fi

rm -f $pidfile

else

rm -f $pidfile

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Failed for ${MY_FQDN} across all DNS servers ${DNS_SERVER_1} and ${DNS_SERVER_2} and ${DNS_SERVER_3}” | logger -p local0.debug; fi

fi

Not directly answering the thread, but need to repost my EAV posted above (original copy/paste issue.)

Anyway, here is the EAV based on 2 AWS DNS server lookups, to avoid resolver delays if down

Resolve name to IP address

Do a curl against the site to see if it is up .. based on DNS lookup above

* If it is up, then iRule will return CNAME to send client tot he cloud

If curl fails, means the cloud site is down, and then irule will return wideip from GTM pool for internal resorce

==================

!/bin/bash

For Bip-IP v11 use GUI to import EAV

For Big-IP pre v11

Save as /usr/bin/monitors/custom_monitor.bash

or

Save as /config/monitors/custom_monitor.bash

Make executable using chmod 755 custom_monitor.bash

The below arguments are supplied automatically

based on the pool members that the EAV is assigned to

$1 = IP (::ffff:nnn.nnn.nnn.nnn notation or hostname)

$2 = port (decimal, host byte order)

Log debug to /var/log/ltm

Check if a variable named DEBUG exists from the monitor definition

The following must be set in the EAV GUI

DEBUG=0 or 1

RESPONSE_CHECK

FQDN_TO_RESOLVE

DNS_SERVER_1

DNS_SERVER_2

if [ -n “$DEBUG” ]

then

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: \$DEBUG: $DEBUG” | logger -p local0.debug; fi

fi

Remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)

We are not actually using it in this monitor

IP=`echo $1 | sed ‘s/::ffff://’`

Save the port for use in the shell command

PORT=$2

Check if there is a prior instance of the monitor running

pidfile=“/var/run/`basename $0`.$IP.$PORT.pid”

if [ -f $pidfile ]

then

kill -9 `cat $pidfile` > /dev/null 2>&1

echo “EAV `basename $0`: exceeded monitor interval, needed to kill ${IP}:${PORT} with PID `cat $pidfile`” | logger -p local0.error

fi

Add the current PID to the pidfile

echo “$$” > $pidfile

Resolve name to IP address

QUERY_RESULT=$(dig @${DNS_SERVER_1} +time=1 +tries=1 +short ${FQDN_TO_RESOLVE} IN A | head -n1)

if [[ $QUERY_RESULT =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Succeeded for ${MY_FQDN} from ${DNS_SERVER_1}” | logger -p local0.debug; fi

Do a curl against the site to see if it is up .. based on DNS lookup above

curl -fNs ${QUERY_RESULT} --header ‘Host: ${FQDN_TO_RESOLVE}’ | grep -i “${RESPONSE_CHECK}” 2>&1 > /dev/null

if [ $? -eq 0 ]

then

echo “up”

fi

rm -f $pidfile

else

QUERY_RESULT=$(dig @${DNS_SERVER_2} +time=1 +tries=1 +short ${FQDN_TO_RESOLVE} IN A | head -n1)

if [[ $QUERY_RESULT =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Succeeded for ${MY_FQDN} from ${DNS_SERVER_2}” | logger -p local0.debug; fi

curl -fNs ${QUERY_RESULT} --header ‘Host: ${FQDN_TO_RESOLVE}’ | grep -i “${RESPONSE_CHECK}” 2>&1 > /dev/null

if [ $? -eq 0 ]

then

echo “up”

fi

rm -f $pidfile

else

rm -f $pidfile

if [ $DEBUG -eq 1 ]; then echo “EAV `basename $0`: Failed for ${MY_FQDN} across all DNS servers ${DNS_SERVER_1} and ${DNS_SERVER_2} and ${DNS_SERVER_3}” | logger -p local0.debug; fi

fi

Bump on this.

QUERY_RESULT=$(dig @${DNS_SERVER_1} +time=1 +tries=1 +short ${FQDN_TO_RESOLVE} IN A | head -n1)

Much better than what I was using to parse out the IP address. Thanks!

Anyone happen to have duplicated the AWS/EAV/iRule configuration on v12+?

I got it running on v11 but v13 is so very different (and just running an upgrade only brings in the objects, it breaks it completely)…like you can’t apply an EAV to a CNAME pool. And if you use an ‘A’ record pool you can’t have a CNAME.

Even in my iRule if I try to tell it to return the CNAME pool it doesn’t work - as soon as you use the keyword ‘cname’ it returns the next entry as the CNAME itself, not the pool. And if you don’t use the keyword ‘cname’ it says it can’t find the CNAME pool. lol.

Thx

Nm…got it. Use an ‘A’ record pool and if it returns ‘up’ from the EAV have the iRule respond directly with the CNAME, don’t have it attempt to point to a pool to return the CNAME. Bazinga.

v13 is a four letter word.

M

This is the closest thread I can find to my issue: 13.1.1 and Applications are moving into Azure. All that is supposed to be required is CNAME to Azure’s CNAMEs but although this works on the external BIG-IP DNS with ZoneRunner something is not working with internal DNS Express which is getting it’s records of a Windows server

The results look fine from a dig but no web access - Not FW as the browser responds with resolution error

$ dig @internal1 tst.wa.au q-opt any

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @internal1 tst.wa.au q-opt any

; (1 server found)

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57169

;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags:; udp: 4096

;; QUESTION SECTION:

tst.wa.au IN A

;; ANSWER SECTION:

tst.wa.au 3600 IN CNAME aut.azurewebsites.net.

;; Query time: 4 msec

;; SERVER: 172.30.96.220#53(172.30.96.220)

;; WHEN: Sat Mar 07 16:04:30 AWST 2020

;; MSG SIZE rcvd: 117

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 22006

;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags:; udp: 4096

;; QUESTION SECTION:

;q-opt.       IN  ANY

;; AUTHORITY SECTION:

.      15  IN  SOA  a.root-servers.net. nsld.veign-grs.com. 2020030700 1800 900 604800 86400