LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-02-2012, 10:51 PM   #1
billc108
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
BIND transfer garbled


I'm in the process of setting up a new BIND server as a secondary, in order to replace an antiquated one.

Both master and slave are running BIND 9.9.2

Transfers are occurring - sorta. They're coming through garbled. What should be coming through looking like:

Code:
$ORIGIN AfricaBound.org.
$ttl 38400
Africabound.org.	IN	SOA	ns1.sustainablesources.com. hostmaster.sustainablesources.com. (
			1354438513
			10800
			3600
			604800
			38400 )
Africabound.org.	IN	NS	ns1.sustainablesources.com.
Africabound.org.	IN	NS	ns2.sustainablesources.com.
Africabound.org.	IN	NS	ns3.sustainablesources.com.
is instead coming through as:

Code:
+AfricaboundorggAfricaboundorgns1sustainablesourcescomns2sustainablesourcescomns3sustainablesourcescomGwwwAfricaboundorgns1sustainablesourcescom
I've seen this before on transfers out of the old BIND server (which was previously the master), but I figured it was just a problem specific to that setup.

Any ideas as to what's causing this and how to fix it? Thanks!
 
Old 12-03-2012, 02:26 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

Could be a network problem, like a broken router, switch, firewall or something like that.
What happens if you're doing the transfer manually for both udp/tcp?
Code:
dig -t axfr AfricaBound.org @x.x.x.x +notcp
dig -t axfr AfricaBound.org @x.x.x.x +tcp
where x.x.x.x is the master's IP

Last edited by bathory; 12-03-2012 at 02:33 AM.
 
Old 12-03-2012, 02:44 AM   #3
billc108
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
What happens if you're doing the transfer manually for both udp/tcp?
Looks normal for both.
 
Old 12-03-2012, 04:03 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Aha. For bind 9.9.0 the slave zones are stored in raw format (see towards the end here)
If you want to see the zone in readable form you can run:
Code:
named-compilezone -j -f raw -o zone.txt AfricaBound.org /path/to/slave/zonefile
Regards
 
Old 12-03-2012, 09:27 AM   #5
billc108
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Aha. For bind 9.9.0 the slave zones are stored in raw format (see towards the end here)
If you want to see the zone in readable form you can run:
Code:
named-compilezone -j -f raw -o zone.txt AfricaBound.org /path/to/slave/zonefile
Regards
Wow. Thanks for that. How very annoying - at least until I get used to it.

Unfortunately, running that code (with the correct path, of course) gives me "not loaded due to errors." in all the variations I've tried. But at least that gives me a jumping off point.

Where did you get the code above? Perhaps there's some tweaking I can do to adjust it so I can read it as a human.
 
Old 12-03-2012, 09:41 AM   #6
billc108
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Aha. For bind 9.9.0 the slave zones are stored in raw format (see towards the end here)
If you want to see the zone in readable form you can run:
Code:
named-compilezone -j -f raw -o zone.txt AfricaBound.org /path/to/slave/zonefile
Regards
If I use:
Code:
$ named-checkzone -d   -f text -o zone.txt africabound.org /var/named/hosts/slave/
I get:

l
Code:
oading "africabound.org" from "/var/named/hosts/slave/" class "IN"
dns_master_load: /var/named/hosts/slave/:1: isc_lex_gettoken() failed: I/O error
dns_master_load: /var/named/hosts/slave/:1: I/O error
zone africabound.org/IN: loading from master file /var/named/hosts/slave/ failed: I/O error
zone africabound.org/IN: not loaded due to errors.
But it shouldn't be loading from a master file, should it?
 
Old 12-03-2012, 11:32 AM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
If I use:

$ named-checkzone -d -f text -o zone.txt africabound.org /var/named/hosts/slave/

I get:

oading "africabound.org" from "/var/named/hosts/slave/" class "IN"
dns_master_load: /var/named/hosts/slave/:1: isc_lex_gettoken() failed: I/O error
dns_master_load: /var/named/hosts/slave/:1: I/O error
zone africabound.org/IN: loading from master file /var/named/hosts/slave/ failed: I/O error
zone africabound.org/IN: not loaded due to errors.

But it shouldn't be loading from a master file, should it?
You need to use "-f raw" because the zone file is in raw format. The resulting zone.txt will be in the classic txt format (the default for previous versions of bind). For more details see the named-compilezone manpage.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bind master slave views wont transfer Daniel304 Linux - Server 5 03-01-2012 08:19 AM
[SOLVED] BIND 9 Zone Transfer Issues lomax0990 Linux - Server 8 12-03-2009 07:40 AM
BIND Slave server never gets zone transfer from master. HELP!! quackking Linux - Networking 2 08-30-2006 12:54 PM
Bind Zone Transfer dafunk Linux - Networking 7 03-22-2006 07:21 PM
Bind 9 - zone transfer using internal IP ? michael_util Slackware 1 03-25-2004 11:15 AM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration