diff --git a/v2/pkg/protocols/dns/dns.go b/v2/pkg/protocols/dns/dns.go index b5c27f7f..66ed617a 100644 --- a/v2/pkg/protocols/dns/dns.go +++ b/v2/pkg/protocols/dns/dns.go @@ -209,10 +209,10 @@ func generateDNSVariables(domain string) map[string]interface{} { domainName := strings.Join([]string{parsed.SLD, parsed.TLD}, ".") return map[string]interface{}{ - "{{FQDN}}": domain, - "{{RDN}}": domainName, - "{{DN}}": parsed.SLD, - "{{TLD}}": parsed.TLD, - "{{SD}}": parsed.TRD, + "FQDN": domain, + "RDN": domainName, + "DN": parsed.SLD, + "TLD": parsed.TLD, + "SD": parsed.TRD, } } diff --git a/v2/pkg/protocols/dns/dns_test.go b/v2/pkg/protocols/dns/dns_test.go index 74b38402..85b00bd9 100644 --- a/v2/pkg/protocols/dns/dns_test.go +++ b/v2/pkg/protocols/dns/dns_test.go @@ -13,11 +13,11 @@ import ( func TestGenerateDNSVariables(t *testing.T) { vars := generateDNSVariables("www.projectdiscovery.io") require.Equal(t, map[string]interface{}{ - "{{FQDN}}": "www.projectdiscovery.io", - "{{RDN}}": "projectdiscovery.io", - "{{DN}}": "projectdiscovery", - "{{TLD}}": "io", - "{{SD}}": "www", + "FQDN": "www.projectdiscovery.io", + "RDN": "projectdiscovery.io", + "DN": "projectdiscovery", + "TLD": "io", + "SD": "www", }, vars, "could not get dns variables") }