Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set up a mail server which will sign outgoing messages with a dkim signature. Part of that process is to set up a dns record for my senders domain with the public key of the key used to sign the message.

I already have a valid spf key in the txt record.

how do I format the txt record in the dns which contains both sets of information?

share|improve this question

You don't!

SPF and DKIM will not share the same FQDN, as the DKIM key owner name is in the form:


Where SPF will always have the same owner name as the sending domain (ie.

share|improve this answer
And you can add multiple txt records in any case. – quadruplebucky Feb 26 '14 at 23:26
I don't really understand what that means - and your answer sort of assumes I do (as does every other article on the internet that I can find). There is a third party who provides the nameserver for, and I can add A records for one level below it, and my mail server obviously uses one of those subdomains for itself( Do I have to set up a name server somewhere else to serve this lower level? – akc42 Feb 27 '14 at 23:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.