From 3c1d7acdaf2fa2e1be7000d2e780d76381658cb4 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 10 May 2018 10:54:15 +0200 Subject: [PATCH] Synthetic SOAs can have constant serial/mail --- dnscrypt-proxy/plugin_block_ipv6.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dnscrypt-proxy/plugin_block_ipv6.go b/dnscrypt-proxy/plugin_block_ipv6.go index 296a7201..4f3b87fc 100644 --- a/dnscrypt-proxy/plugin_block_ipv6.go +++ b/dnscrypt-proxy/plugin_block_ipv6.go @@ -2,7 +2,6 @@ package main import ( "strings" - "time" "github.com/miekg/dns" ) @@ -54,14 +53,10 @@ func (plugin *PluginBlockIPv6) Eval(pluginsState *PluginsState, msg *dns.Msg) er if !(i < 0 || i+1 >= len(qName)) { parentZone = qName[i+1:] } - dotParentZone := "." - if parentZone != "." { - dotParentZone += parentZone - } soa := new(dns.SOA) - soa.Mbox = "h" + dotParentZone + soa.Mbox = "h.invalid." soa.Ns = "a.root-servers.net." - soa.Serial = uint32(time.Now().Unix()) + soa.Serial = 1 soa.Refresh = 10000 soa.Minttl = 2400 soa.Expire = 604800