Error "Query section mismatch : got"

Matus UHLAR - fantomas uhlar at
Wed Aug 19 11:41:33 UTC 2020

On 19.08.20 17:40, Smile TV wrote:
>    I query the PTR Resource Record that is hosted on DNS Server/
> (reverse zone: However,
>There is a difference between when querying directly the PTR RR and
>querying Any RR.
>    The results of two case below:
>*Case 1: Query the PTR RR directly, i meet the error: "Question section
>mismatch" like:*
> dig @ ptr
>;; Question section mismatch: got
>;; Question section mismatch: got
>;; Question section mismatch: got

>What is the error "Query section mismatch"? and the why? Can anybody help

you asked for: 
but got:

that's different therefore the mismatch.

Why do you query for by the way?

>*Case 2: Query Any RR, the result like here*
> dig @ any
>; <<>> DiG 9.10.4-P3 <<>> @
>; (1 server found)
>;; global options: +cmd
>;; Got answer:
>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12424
>;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 21
>;; WARNING: recursion requested but not available
>; IN  ANY
> 360 IN PTR
> 360 IN PTR
> 360   IN      NS
> 360   IN      NS
> 360   IN      NS

I got the same results for both queries, but UDP is allowed while TCP is
- no matter if I ask for any or for ptr.

seems that default for 'any' is TCP, while for 'ptr' the default is UDP.

TCP is required for working DNS - they should not block it.

again, why you query for ?

under normal circumstances there's no point of querying that name.


Matus UHLAR - fantomas, uhlar at ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Microsoft dick is soft to do no harm

More information about the bind-users mailing list