DNS-OARC / flamethrower

a DNS performance and functional testing utility supporting UDP, TCP, DoT and DoH
Apache License 2.0
318 stars 37 forks source link

PTR qtype mapping incorrect #96

Closed jamesph3 closed 1 year ago

jamesph3 commented 1 year ago

I was testing with PTR records and noticed they were coming through as AAAA. I can see in the qtype.cpp the PTR qtype is mapped to AAAA:

} else if (qt == "PTR") {
    qtype = LDNS_RR_TYPE_AAAA;
} else if (qt == "TXT") {

Should this be updated and mapped to LDNS_RR_TYPE_PTR?

weyrick commented 1 year ago

Yes, looks like simple copy and paste error. Can you create a quick PR for this? Thanks!

jamesph3 commented 1 year ago

PR created...

weyrick commented 1 year ago

Thanks!