Transformer: Normalize
This transformer can be used:
- to convert all domain to lowercase. For example:
Www.GooGlE.comwill be equal towww.google.com - to add top level domain. For example for
books.amazon.co.uk, theTLDisco.ukand theTLD+1isamazon.co.uk. - to use small text form. For example:
CLIENT_QUERYwill be replaced byCQ - to replace or remove non-printable characters
[!NOTE] DNS-collector handles all strings (qname, rdata, etc.) as UTF-8. Any non-UTF-8 characters encountered during processing are replaced with the UTF-8 replacement character
`. If you need to preserve the original non-UTF-8 bytes, use the **Data Extractor** transformer withbase64-fieldsorhex-fields`.
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:
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