LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2021, 02:56 AM   #1
tets
Member
 
Registered: Aug 2005
Location: Prague, Czech Rep.
Distribution: Gentoo, Mint
Posts: 33

Rep: Reputation: 16
Bind9 - can't transfer zone


Hello,

I've encountered a strange problem with zone transfer. I'm an admin of Bind9 DNS server that is acting as a slave for few domains. One of the domains is not transfering (other from the same master transfers fine).

Bind9 error in the log is:
'xfer-in: error: transfer of 'domain.com/IN' from XXX.XXX.XXX.XXX#53: failed while receiving responses: FORMERR'

When I try "dig AXFR @XXX.XXX.XXX.XXX domain.com" the error is:
Code:
;; Got bad packet: bad bitmap
1195 bytes
and a hex dump.

Tried tshark while running the "dig AXFR", seems fine until:
Code:
<Root>: type NXT, class Unknown, next domain name <Root>
            Name: <Root>
            Type: NXT (Next Domain) (30)
            Class: Unknown (0x77c2)
            Time to live: 134219008 (1553 days, 11 hours, 3 minutes, 28 seconds)
            Data length: 256
            Next Domain Name: <Root>
            RR type in bit map: MB (MailBox domain name)
            RR type in bit map: NULL RR
            RR type in bit map: PTR (domain name PoinTeR)
            RR type in bit map: HINFO (host information)
            RR type in bit map: NXT (Next Domain)
            RR type in bit map: NIMLOC (Nimrod Locator)
            RR type in bit map: SRV (Server Selection)
            RR type in bit map: A6 (OBSOLETE - use AAAA)
            RR type in bit map: SSHFP (SSH Key Fingerprint)
            RR type in bit map: Unknown (53)
            RR type in bit map: Unknown (54)
            RR type in bit map: RKEY
            RR type in bit map: TALINK (Trust Anchor LINK)
            RR type in bit map: OPENPGPKEY (OpenPGP Key)
            RR type in bit map: Unknown (63)
            RR type in bit map: HTTPS (HTTPS Specific Service Endpoints)
            RR type in bit map: Unknown (66)
            RR type in bit map: Unknown (68)
            RR type in bit map: Unknown (70)
            ...
            ...
            RR type in bit map: Unknown (2034)
            RR type in bit map: Unknown (2035)
            RR type in bit map: Unknown (2037)
[Malformed Packet: DNS]
    [Expert Info (Error/Malformed): Malformed Packet (Exception occurred)]
        [Malformed Packet (Exception occurred)]
        [Severity level: Error]
        [Group: Malformed]
Output of "dig @XXX.XXX.XXX.XXX domain.com any" is OK, it's just the transfer that is failing.

I even tried:
Code:
perl -MNet::DNS -wE 'my $r = Net::DNS::Resolver->new(); $r->nameservers("XXX.XXX.XXX.XXX"); for my $rr ($r->axfr("domain.com")) { $rr->print }'
that we found at https://lists.isc.org/pipermail/bind...ay/104613.html
No output, but tshark show exactly the same traffic as "dig AXFR".

I got my hands on the .zone file from master, named-checkzone said "OK".

Our Bind9 is version 9.16.15 on a Gentoo server.
The master server is also Bind9.

I'm out of ideas. Anyone encountered this problem? Any solution, please?
Let me know if you need more info.

Thank you

Tets
 
Old 11-04-2021, 11:32 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,376

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
You could just read the hexdump (1195 chars isn't tooo bad ), but easier is likely to be using vim to look at the problematic file using https://chrispian.com/quick-vi-tip-s...en-characters/ to show/hide hidden (ctrl) chars.
The mesgs you are getting certainly seem to point at file corruption - can happen to anybody...
 
Old 11-05-2021, 02:42 AM   #3
tets
Member
 
Registered: Aug 2005
Location: Prague, Czech Rep.
Distribution: Gentoo, Mint
Posts: 33

Original Poster
Rep: Reputation: 16
Unfortunately, that's not the case. Admin on the master checked it as you suggested, even recreated the file from scratch. I, too, checked the original file he sent me - nothing weird in it. And we still have the same error.

Also - shouldn't named-checkzone show such mistake? named-checkzone was our first check and it said "OK".

Admin on the master even tried to transfer the zone to one of his computers (after allowing transfer on the master first of course) - and it transfered without a problem...


Thank you

Tets
 
Old 11-05-2021, 06:18 AM   #4
tets
Member
 
Registered: Aug 2005
Location: Prague, Czech Rep.
Distribution: Gentoo, Mint
Posts: 33

Original Poster
Rep: Reputation: 16
It is not the zone file. It must be something with our network. Transfer is OK from my private server, from master's admin computer, just not from our network.
My boss responsible for our firewall (Palo Alto) told me that it's not the firewall...

We'll investigate further.


Thanks again

Tets
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Errors - BIND9 - Reverse Zone - ignoring out-of-zone data jd5646 Linux - Networking 1 05-07-2018 10:21 AM
I find file zone in the slave zone to the do a transfer of zone from Windows Server 2012 as master dns and CentOS as slave DNS. To learn Linux - Newbie 1 09-02-2016 09:36 AM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM
Windows 03 DNS zone transfer to BIND9 on Suse 10 Enterprise clincoln Linux - Networking 11 08-15-2008 01:03 AM
DNS Zone x-fer - From one zone to another / Debian 3.1 + BIND9 kenwoodgt Linux - Software 0 11-01-2006 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration