LinuxQuestions.org
Help answer threads with 0 replies.
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 03-18-2008, 07:32 AM   #1
jessicaK
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Rep: Reputation: 15
system-config-bind issues


Hello!

I am using bind 9 on RHEL5. I migrated these zones over from a win2k3 server and attempted to edit them to match bind's format.

-rw-r--r-- 1 root named 579 Mar 17 14:52 test.com.db

*Tried chown'ing to named:named didn't help*

$TTL 1H
test.com. IN SOA ns1.dnsserver.com. hostmaster.ns1.dnsserver.com. (3
3H
1H
1W
1H )
@ 1H IN NS ns1.dnsserver.com.
@ 1H IN NS ns2.dnsserver.com.
@ 1H IN A 10.1.1.1
www 1H IN A 10.1.1.1

*the zone lost the space formating in the post sorry!*

The above is an example of a zone that is accepted by named on restart, however if i load the dns tool system-config-bind, and attempt to make changes to this record I receive:

"Save of Zone File /var/named/chroot/var/named/test.com.db failed:
dns_master_load: /var/named/chroot/var/named/test.com.db:2: unexpected end of line
dns_master_load: /var/named/chroot/var/named/test.com.db:1: unexpected end of input
/var/named/chroot/var/named/test.com.db:11: using RFC 1035 TTL semantics
zone test.com/IN: loading master file /var/named/chroot/var/named/test.com.db: unexpected end of input"

I have added the TTL on a record bases trying to replicate a fake zone created to see if I could find the difference that system-config-bind is looking for. The only files I have edited are the named.conf file located in /var/named/etc and creating the db files by hand so it is possible if there is another file that needs to be edited maybe I am missing.

Any help would greatly be appreciated!
 
Old 03-18-2008, 09:48 AM   #2
jessicaK
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Ok figured it out I think, there must be hidden characters since they came from windows. I figured vi would have seen this, but I guess not. Anyone have any good scripts to strip and create heh?
 
Old 03-18-2008, 09:52 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,566

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
If you have edited the zone file in windows there are maybe some non-printable characters. Use the dos2unix command to transform the file in unix format.

Regards
 
Old 03-18-2008, 10:02 AM   #4
jessicaK
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
yep dos2unix is awesome anyways hope whoever reads this has a great day!

~grumbles about missing something silly~
 
Old 03-18-2008, 10:03 AM   #5
jessicaK
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
If you have edited the zone file in windows there are maybe some non-printable characters. Use the dos2unix command to transform the file in unix format.

Regards
Missed your response! That did the trick, thanks for reply
 
  


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
CentOS 5.1 Bind config ratcateme Linux - Software 1 02-01-2008 10:06 PM
system-config-bind ziz300 Linux - Networking 1 05-26-2006 05:48 AM
Sendmail - Config for IP Block's & Config Issues Thom_Redhat Linux - Software 1 04-07-2006 01:29 PM
Bind config tool serverjunkie Linux - Software 0 01-18-2006 04:47 AM
system-config-bind -- save error labMonkey Linux - Networking 0 01-26-2005 01:42 PM

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

All times are GMT -5. The time now is 04:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration