This transformer can be used:
- to convert all domain to lowercase. For example:
Wwww.GooGlE.com
will be equal towww.google.com
- to add top level domain. For example for
books.amazon.co.uk
, theTLD
isco.uk
and theTLD+1
isamazon.co.uk
. - to use small text form. For example:
CLIENT_QUERY
will be replaced byCQ
- to replace or remove non-printable characters
Options:
-
qname-lowercase
(boolean)enable or disable lowercase
-
rr-lowercase
(boolean)enable or disable lowercase for all resources records
-
qname-replace-nonprintable
(boolean)replace non printable characters with decimal value the domain
"invalid\tinvalid . com"
will beinvalid\009invalid\032.\032com
-
add-tld
(boolean)add top level domain
-
add-tld-plus-one
(boolean)add top level domain plus one label
-
quiet-text
(boolean)Quiet text mode to reduce the size of the logs
transforms:
normalize:
qname-lowercase: false
qname-replace-nonprintable: false
rr-lowercase: false
add-tld: false
add-tld-plus-one: false
quiet-text: false
The following dnstap flag message will be replaced with the small form:
- AUTH_QUERY:
AQ
- AUTH_RESPONSE:
AR
- RESOLVER_QUERY:
RQ
- RESOLVER_RESPONSE:
RR
- CLIENT_QUERY:
CQ
- CLIENT_RESPONSE:
CR
- FORWARDER_QUERY:
FQ
- FORWARDER_RESPONSE:
FR
- STUB_QUERY:
SQ
- STUB_RESPONSE:
SR
- TOOL_QUERY:
TQ
- TOOL_RESPONSE:
TR
The following dns flag message will be replaced with the small form:
- QUERY:
Q
- REPLY:
R
If one of add-tld options is enable then the following json field are populated in your DNS message:
Example:
"publicsuffix": {
"etld+1": "eu.org",
"tld": "org",
"managed-icann": true
}
Specific directives added for text format:
publicsuffix-tld
: Public Suffix of the DNS QNAMEpublicsuffix-etld+1
: Public Suffix plus one label of the DNS QNAMEpublicsuffix-managed-icann
: Public Suffix flag for managed icann domains