Discussion:
Bind refusing my DKIM key
Dan Egli
2021-05-07 04:35:47 UTC
Permalink
I don't know what's up, but when I tried to put my DKIM into the test
server, named-checkzone keeps giving a syntax error on the key line.
Here's what I'm putting in (it really is on one line in the zone file,
just too long for my MUA to put on one line):

key1._domainkey        IN   
TXT   
"v=DKIM1;p=QUFBQUIzTnphQzF5YzJFQUFBQURBUUFCQUFBQWdRQ3B0Uy9SMzRJQm5yZEhGZFYzNE4zMmdWUjQyelFDUnpXdkJMWDloNkUwOUlRNnBsV0p3S09aL0hHQ3ZjSHlaNytKZVk4MWlCR1p4NWhLN1pvQkZaYTMxcjlmMDRZU2NkeVZmVUQrb004UjJCQzBGNVdQY3ptMGl1TVJQemFqY29tSU5LSHltWEplRHU0K05oTnlhWEJoRi9oS0hrUlNJeFNDU3JqbWxlZWRsdz09IA=="


But when I run checkzone:
dns_rdata_fromtext: myzone.zone:26: syntax error
zone eglifamily.name/IN: loading from master file myzone.zone failed:
syntax error

What's wrong? Why is it failing?
--
Dan Egli
From my Test Server
Mark Andrews
2021-05-07 04:40:30 UTC
Permalink
Split the record at 255 characters. TXT field need to be <= 255 characters.
Complain to the developers of the tool that created this record that it is
INVALID as the field length is TOO BIG.
key1._domainkey IN TXT "v=DKIM1;p=QUFBQUIzTnphQzF5YzJFQUFBQURBUUFCQUFBQWdRQ3B0Uy9SMzRJQm5yZEhGZFYzNE4zMmdWUjQyelFDUnpXdkJMWDloNkUwOUlRNnBsV0p3S09aL0hHQ3ZjSHlaNytKZVk4MWlCR1p4NWhLN1pvQkZaYTMxcjlmMDRZU2NkeVZmVUQrb004UjJCQzBGNVdQY3ptMGl1TVJQemFqY29tSU5LSHltWEplRHU0K05oTnlhWEJoRi9oS0hrUlNJeFNDU3JqbWxlZWRsdz09IA=="
dns_rdata_fromtext: myzone.zone:26: syntax error
zone eglifamily.name/IN: loading from master file myzone.zone failed: syntax error
What's wrong? Why is it failing?
--
Dan Egli
From my Test Server
<OpenPGP_0x11B7451DF2015959.asc>_______________________________________________
Please 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
https://lists.isc.org/mailman/listinfo/bind-users
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ***@isc.org

_______________________________________________
Please 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-***@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users
Dan Egli
2021-05-07 05:14:51 UTC
Permalink
Thanks! I went somewhere else, used THEIR dkim generator, and it works
Post by Mark Andrews
Split the record at 255 characters. TXT field need to be <= 255 characters.
Complain to the developers of the tool that created this record that it is
INVALID as the field length is TOO BIG.
key1._domainkey IN TXT "v=DKIM1;p=QUFBQUIzTnphQzF5YzJFQUFBQURBUUFCQUFBQWdRQ3B0Uy9SMzRJQm5yZEhGZFYzNE4zMmdWUjQyelFDUnpXdkJMWDloNkUwOUlRNnBsV0p3S09aL0hHQ3ZjSHlaNytKZVk4MWlCR1p4NWhLN1pvQkZaYTMxcjlmMDRZU2NkeVZmVUQrb004UjJCQzBGNVdQY3ptMGl1TVJQemFqY29tSU5LSHltWEplRHU0K05oTnlhWEJoRi9oS0hrUlNJeFNDU3JqbWxlZWRsdz09IA=="
dns_rdata_fromtext: myzone.zone:26: syntax error
zone eglifamily.name/IN: loading from master file myzone.zone failed: syntax error
What's wrong? Why is it failing?
--
Dan Egli
From my Test Server
<OpenPGP_0x11B7451DF2015959.asc>_______________________________________________
Please 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
https://lists.isc.org/mailman/listinfo/bind-users
--
Dan Egli
From my Test Server
Loading...