]> average.org Git - pdns-pipe-nmc.git/commitdiff
SRV hack part 1
authorEugene Crosser <crosser@average.org>
Sun, 13 Apr 2014 17:17:09 +0000 (21:17 +0400)
committerEugene Crosser <crosser@average.org>
Sun, 13 Apr 2014 17:17:09 +0000 (21:17 +0400)
NmcDom.hs

index 6594b7d3776f76a95ef58b67913f3fdcbbf6010c..c32a16e2245b30b64f066bdb5ee71c0b1eb05b6f 100644 (file)
--- a/NmcDom.hs
+++ b/NmcDom.hs
@@ -245,6 +245,8 @@ descendNmcDom queryOp subdom base = do
   base' <- mergeImport queryOp 10 base
   case subdom of
     []   -> return $ fmap normalizeDom base'
+    -- A hack to handle SRV records: don't descend if ["_prot","_serv"]
+    [('_':_),('-':_)] -> return $ fmap normalizeDom base'
     d:ds ->
       case base' of
         Left err     -> return base'