fix(client): add forward ip support in PTR query-name (#1261)
* feat(client): add forward ip support in PTR query-name * fix(identation): spaces back to tabs * Update client/client.go * Update client/client.go --------- Co-authored-by: Denis Evers <git@evers.sh> Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
@@ -451,6 +451,16 @@ func TestQueryDNS(t *testing.T) {
|
||||
expectedDNSCode: "NOERROR",
|
||||
expectedBody: "dns.google.",
|
||||
},
|
||||
{
|
||||
name: "test Config with type PTR and forward IP / no in-addr",
|
||||
inputDNS: dns.Config{
|
||||
QueryType: "PTR",
|
||||
QueryName: "1.0.0.1",
|
||||
},
|
||||
inputURL: "1.1.1.1",
|
||||
expectedDNSCode: "NOERROR",
|
||||
expectedBody: "one.one.one.one.",
|
||||
},
|
||||
{
|
||||
name: "test Config with fake type and retrieve error",
|
||||
inputDNS: dns.Config{
|
||||
|
||||
Reference in New Issue
Block a user