nsupdate - handle "automatic chunking" for long rdata
Example would be DKIM keys. Would be nice if one could feed nsupdate something like:
"v=DKIM1;h=sha256;k=rsa;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwNaasZOXcA/GFgbu+iAwOUhKKW+QHVdknaZNlh6NMv/r6A+kOpnGCvMsif1LYlas2ZGLFtq1KrjFhOzlBpTNBN1hd/dceGC+rl39Y9VuAPxtNHRp9iZCz/Gs0ipJMzLlXEYE6DA5xKmq88Qk/9VNG5e5AECtCVYV3w7YftHGTuDWIRRMMS+IhyTzivCUYSRu4jl7HklhxplSuryPoKuPzzlVeS22HFtaTV4BXSrf1K9tmu1coe5fB4zbgodDZ5/yx6rFTgr3EjYzhWBqh72G0hHBTBufMu1hMej1Mt6KJsZw8GEGUUWLalfJnuoI8sxVPm3pII+9QoKXNqZtdiGtEQIDAQAB"
And have nsupdate "chunk" this into < 255 byte parts:
"v=DKIM1; h=sha256; k=rsa;" "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwNaasZOXcA/GFgbu+iAwOUhKKW+QHVdknaZNlh6NMv/r6A+kOpnGCvMsif1LYlas2ZGLFtq1KrjFhOzlBpTNBN1hd/dceGC+rl39Y9VuAPxtNHRp9iZCz/Gs0ipJMzLlXEYE6DA5xKmq88Qk/9VNG5e5AECtCVYV3w7YftHGTuDWIRRMMS+IhyTzivCUYSRu4jl7HklhxplSur" "yPoKuPzzlVeS22HFtaTV4BXSrf1K9tmu1coe5fB4zbgodDZ5/yx6rFTgr3EjYzhWBqh72G0hHBTBufMu1hMej1Mt6KJsZw8GEGUUWLalfJnuoI8sxVPm3pII+9QoKXNqZtdiGtEQIDAQAB"
Sorry for the formatting here as well, but hopefully the idea comes across.
As a human, I would naturally (try to) split on boundaries that make this a bit more readable (i.e. starting a new chunk at "p="). I wouldn't think you'd want to have corner cases and parsing logic to make it pretty, I suppose as long as it's valid syntax and the rdata goes in properly that's all that matters.