ADC Advanced Policy Expressions

DNS_PROTOCOL_T

Models the DNS message types.

This topic lists the expressions that are provided by this class.

LENGTH

Returns the DNS packet length.

In case of DNS-TCP, it includes 2 byte length field as well.

Returns: num_at

NEW_RESPONSE

Creates an empty DNS response based on request header.

Returns: text_t

NEW_RESPONSE(bool_atAA, bool_atTC, dns_rcode_ercode)

Creates a new empty DNS response based on the given parameters.

Parameters(expressions not allowed):

AA -

                        Authoritative Answer flag

TC -

                        Truncated flag

rcode -

                        Retrun Code

Returns: text_t

NEW_RRSET_AAAA(text_tiplist, uint ttl)

Creates a new RR set with the given ipv6 address and ttl

parameters.

Parameters(expressions not allowed):

iplist -

                        Comma separated IPv6 address list

ttl -

                        Time To Live

Returns: text_t

NEW_RRSET_A(text_tiplist, uint ttl)

Creates a new RR set with the given ipv4 address and ttl

parameters.

Parameters(expressions not allowed):

iplist -

                        Comma separated IP address list

ttl -

                        Time To Live

Returns: text_t

REQ

Operates on DNS Request.

Returns: dns_req_t

RES

Operates on DNS Response.

Returns: dns_res_t

RR

Operates on DNS Resource Record(RR).

Returns: dns_rr_t

DNS_PROTOCOL_T

In this article