abh / geodns

DNS server with per-client targeted responses
Apache License 2.0
1.39k stars 193 forks source link

TXT records with dot in it like default._domainkey is not working #107

Closed AnoopAlias closed 6 years ago

AnoopAlias commented 6 years ago

Is there a way to get TXT records of the form

default._domainkey.domain.com

to work.

Right now this does not seem to work when adding the key as

"default._domainkey": {"txt": ["v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvb/PxiY4ExMhQFWv+2W8f+f/+wqV4B1qNCC92P/W6uDeRPrVjnW1NCAvsRUYvLdJFJBAH3/nuwZqiq3vid7rrXbYMtem+W7ZhewXjuQRFo/4VUQxOD0uzFiE1gYBV/5ei/1QbLcxWEdI7ZqblXvyHq5MrlF8oUA1KmWa3BZHTacBumltvvQv0ekmL2HotC9Dj2u6w9cNCDsnIYWX/Ip9eTEBo85cudcaZ3KccxCWHv9iTgvEQjvE5YK1dintRX+Gxvre1lIIDGE0nnPabfK2zY+MTdaDkfwE2WECb6Cgiql/m4VKWAKquSsLbEIz4Hyh9gA/sNIHSqXDO0g8qBa9qwIDAQAB;"]}

Thanks in advance

AnoopAlias commented 6 years ago

Just for the record of anyone else having this issue. It was actually caused by the 255 char limit in TXT records as per RFC . geoDNS was playing good . the solution is to split up records