MichaCo / DnsClient.NET

DnsClient.NET is a simple yet very powerful and high performant open source library for the .NET Framework to do DNS lookups
https://dnsclient.michaco.net
Apache License 2.0
762 stars 136 forks source link

Characters should not be escaped within the audit trail <character-string> #195

Closed patrickdev19 closed 5 months ago

patrickdev19 commented 10 months ago

As mentioned within section https://datatracker.ietf.org/doc/html/rfc1035#section-5.1, characters within double quotes (") should not be escaped. Maybe it is an idea to fix this.

Example with DKIM text records:

; (1 server found)
;; Got answer:
;; ->>HEADER<<- opcode: Query, status: No Error, id: 56569
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; UDP: 512; code: NoError
;; QUESTION SECTION:
safe2023._domainkey.example.com.    IN  TXT

;; ANSWER SECTION:
safe2023._domainkey.example.com.    15  IN  TXT     "v=DKIM1\; k=rsa\;"

;; Query time: 86 msec
;; SERVER: 127.0.0.1#53
;; WHEN: Thu Aug 17 13:01:56 Z 2023
;; MSG SIZE  rcvd: 489

The TXT value should be

safe2023._domainkey.example.com.    15  IN  TXT     "v=DKIM1; k=rsa;"

instead of

safe2023._domainkey.example.com.    15  IN  TXT     "v=DKIM1\; k=rsa\;"