Menu

domainkeys

Help
meho
2012-11-22
2013-04-22
  • meho

    meho - 2012-11-22

    hello,

    I am trying to add a TXT record for domain keys. After adding this record, I try to do a dig and get a SERVFAIL. I am starting to wonder if some characters need escaping. below is the info I am trying to add to rdata:

    "v=DKIM1; p=-----BEGINPUBLICKEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC74+k4BaTNRP/AH0HdejfRIF+ASE9LqeO4Jv6r90SXKLC1DjZ0mZuoqOBIjUGBVTKewA/2VmXDoCNbkVNvNRQm+UBI6rCqyjQdjq3gjHKjLXViJkWJu5LLwCVYN2DqPwy2FzOslYinR8e/PEdvHSO/NoekiLTaA4hP1dBxzPV0wIDAQAB -----ENDPUBLICKEY-----; t=s"
    

    I have tried to escape every possible character in the key but no joy
    then I added the first 200 or so characters of the key, like this:

    "v=DKIM1; p=-----BEGINPUBLICKEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC74+k4BaTNRP/AH0HdejfRIF+ASE9LqeO4Jv6r90SXKLC1DjZ0mZuoqOBIjUGBVTKewA/2VmXDoCNbkVNvNRQm+UBI6rCqyjQdjq3gjHKjLXViJkWJu5LLwCVYN2DqPwy2FzOslYinR8e/PEdvHSO -----ENDPUBLICKEY-----; t=s"
    

    into the database and checked with dig, it pulled up the  record. From that point on, I added one character of the key at at time and checked with dig, trying to see when mysql-bind stopped pulling the record from the database.  when I make it beyond:

    "v=DKIM1\; p=-----BEGINPUBLICKEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC74+k4BaTNRP/AH0HdejfRIF+ASE9LqeO4Jv6r90SXKLC1DjZ0mZuoqOBIjUGBVTKewAx/2VmXDoCNbkVNvNRQm+UBI6rCqyjQdjq3gjHKjLXViJkWJu5LLwCVYN2DqPwy2FzOslYinR8e/PEdvHSO/Noek -----ENDPUBLICKEY-----; t=s"
    

    it fails to pull up the record.

    these are the fields and types in the mysql table:

    Field   Type    
    name    varchar(255)            
    ttl             int(11)             
    rdtype  varchar(255)            
    rdata   varchar(2048)           
    id          int(255)
    

    So, it doesn't seem to need escaping since it isn't failing on a special character, I would think.
    Anybody have any ideas?

     
  • meho

    meho - 2012-11-22

    Seems to barf on the last 23 characters of the key:
    full key:

    "v=DKIM1; p=-----BEGINPUBLICKEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC74+k4BaTNRP/AH0HdejfRIF+ASE9LqeO4Jv6r90SXKLC1DjZ0mZuoqOBIjUGBVTKewAx/2VmXDoCNbkVNvNRQm+UBI6rCqyjQdjq3gjHKjLXViJkWJu5LLwCVYN2DqPwy2FzOslYinR8e/PEdvHSO/NoekiLTaA4hP1dBxzPV0wIDAQAB-----ENDPUBLICKEY-----; t=s"
    

    fails if I add anymore than this:

    "v=DKIM1; p=-----BEGINPUBLICKEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC74+k4BaTNRP/AH0HdejfRIF+ASE9LqeO4Jv6r90SXKLC1DjZ0mZuoqOBIjUGBVTKewAx/2VmXDoCNbkVNvNRQm+UBI6rCqyjQdjq3gjHKjLXViJkWJu5LLwCVYN2DqPwy2FzOslYinR8e/PEdvHSO/Noek-----ENDPUBLICKEY-----; t=s"
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.