fix adding DKIM in the root of a zone
authorRalf Jung <post@ralfj.de>
Thu, 1 Jan 2015 22:12:43 +0000 (23:12 +0100)
committerRalf Jung <post@ralfj.de>
Thu, 1 Jan 2015 22:12:43 +0000 (23:12 +0100)
zone.py

diff --git a/zone.py b/zone.py
index 36dae78df4102c18e987e56059cbcd5910d11df7..c311a214c6843ea1baa5834a0add9d636ef1c91b 100644 (file)
--- a/zone.py
+++ b/zone.py
@@ -171,7 +171,7 @@ class DKIM(TXT): # helper class to treat DKIM more antively
         super().__init__("v={0}; k={1}; p={2}".format(version, alg, key))
     
     def generate_rr(self, owner, zone):
-        return super().generate_rr('{0}._domainkey.{1}'.format(self._selector, owner), zone)
+        return super().generate_rr('{0}._domainkey.{1}'.format(self._selector, zone.abs_hostname(owner)), zone)
 
 
 class SRV: