Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet-its.stanford.edu!usenet.stanford.edu!not-for-mail From: Matus UHLAR - fantomas Newsgroups: comp.protocols.dns.bind Subject: Re: Error "Query section mismatch : got" Date: Wed, 19 Aug 2020 13:41:33 +0200 Lines: 77 Approved: bind-users@lists.isc.org Message-ID: References: <20200819114133.GA6272@fantomas.sk> NNTP-Posting-Host: lists.isc.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: usenet.stanford.edu 1597837307 2342 149.20.1.60 (19 Aug 2020 11:41:47 GMT) X-Complaints-To: action@cs.stanford.edu To: bind-users@lists.isc.org Return-Path: X-Original-To: bind-users@lists.isc.org Delivered-To: bind-users@lists.isc.org X-Authentication-Warning: fantomas.fantomas.sk: uhlar set sender to uhlar@fantomas.sk using -f Mail-Followup-To: bind-users@lists.isc.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mx.pao1.isc.org X-BeenThere: bind-users@lists.isc.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: BIND Users Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200819114133.GA6272@fantomas.sk> X-Mailman-Original-References: Xref: csiph.com comp.protocols.dns.bind:16052 On 19.08.20 17:40, Smile TV wrote: > I query the PTR Resource Record that is hosted on DNS Server/ >115.84.177.8 (reverse zone: 250.0-24.199.212.125.in-addr.arpa). 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 @115.84.177.8 250.0-24.199.212.125.in-addr.arpa ptr >;; Question section mismatch: got 255.0.199.212.in-addr.arpa/PTR/IN >;; Question section mismatch: got 255.0.199.212.in-addr.arpa/PTR/IN >;; Question section mismatch: got 255.0.199.212.in-addr.arpa/PTR/IN >What is the error "Query section mismatch"? and the why? Can anybody help >me! you asked for: 250.0-24.199.212.125.in-addr.arpa but got: 255.0.199.212.in-addr.arpa that's different therefore the mismatch. Why do you query for 250.0-24.199.212.125.in-addr.arpa by the way? >*Case 2: Query Any RR, the result like here* > > dig @115.84.177.8 250.0-24.199.212.125.in-addr.arpa any > >; <<>> DiG 9.10.4-P3 <<>> @115.84.177.8 250.0-24.199.212.125.in-addr.arpa >any >; (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 > >;; QUESTION SECTION: >;250.0-24.199.212.125.in-addr.arpa. IN ANY > >;; ANSWER SECTION: >250.0-24.199.212.125.in-addr.arpa. 360 IN PTR smtp.vss.gov.vn. >250.0-24.199.212.125.in-addr.arpa. 360 IN PTR baohiemxahoi.gov.vn. > >;; AUTHORITY SECTION: >199.212.125.in-addr.arpa. 360 IN NS ns.viettelidc.com.vn. >199.212.125.in-addr.arpa. 360 IN NS ns1.viettelidc.com.vn. >199.212.125.in-addr.arpa. 360 IN NS ns2.viettelidc.com.vn. I got the same results for both queries, but UDP is allowed while TCP is refused. - 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 250.0-24.199.212.125.in-addr.arpa ? under normal circumstances there's no point of querying that name. there -- Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/ 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