Re: Splitting long strings in RRs using parentheses
On 26-05-2022 15:27, Jan-Piet Mens via bind-users wrote: A semicolon begins a comment in a zone file [1], so yes. -JP [1] https://jpmens.net/2015/10/28/the-semicolon-in-zone-master-files-some-history/ Thank you, JP. Nice blog post. Very enlightening. On 26-05-2022 15:29, Bjørn Mork wrote: https://datatracker.ietf.org/doc/html/rfc1035#section-5.1 So yes, that's expected behaviour. You need to quote that ; unless you want BIND to interpret it as the start of a comment Thank you as well, Bjørn. I might skim through the RFC, but JP's post is much lighter reading. ;) Quite a contrast to the required semicolons in the BIND configuration files. Many a time, when I first started using BIND, it would throw errors at me because of a missing semicolon inside curly braces or right after the closing one. -- Sandro -- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Splitting long strings in RRs using parentheses
Sandro writes: > The bit from the first semicolon to the end of the line was missing. > > Is that expected behavior? I couldn't find any documentation regarding > the usage of parentheses. The master file format is mostly defined by RFC1035. See https://datatracker.ietf.org/doc/html/rfc1035#section-5.1 So yes, that's expected behaviour. You need to quote that ; unless you want BIND to interpret it as the start of a comment Bjørn -- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Splitting long strings in RRs using parentheses
20220317-a4qe._domainkeyTXT ( v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAA ^ begin comment OCAQ8AMIIBCgKCAQEAmEsWuQCj+OenaSQ3dM6WItExor The bit from the first semicolon to the end of the line was missing. Is that expected behavior? A semicolon begins a comment in a zone file [1], so yes. -JP [1] https://jpmens.net/2015/10/28/the-semicolon-in-zone-master-files-some-history/ -- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Splitting long strings in RRs using parentheses
Hello, While adding a DKIM key to my zone I was looking for information about using parentheses for working around the string length limitation. I looked at the way BIND puts them in my zone file for RRSIG entries and and applied that to the TXT record: 20220317-a4qe._domainkeyTXT ( v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAA OCAQ8AMIIBCgKCAQEAmEsWuQCj+OenaSQ3dM6WItExor ... QXLXEHkQIDAQAB ) However, that was transformed by BIND into: 20220317-a4qe._domainkey.penguinpee.nl. 3600 IN TXT "v=DKIM1" "OCAQ8AMIIBCgKCAQEAmEsWuQCj+OenaSQ3dM6WItExor" ... "QXLXEHkQIDAQAB" The bit from the first semicolon to the end of the line was missing. Is that expected behavior? I couldn't find any documentation regarding the usage of parentheses. I know I can also use multiple strings, just like in the answer from BIND. I worked around the issue defining it as follows: 20220317-a4qe._domainkeyTXT "v=DKIM1; k=rsa; " ( p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQ That returns the full key and all parameters. So, this question is more out of curiosity. -- Sandro -- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users