--- a/register-p.sh
+++ b/register-p.sh
@@ -27,11 +27,11 @@
 #
 echo "" >> $DBFILE
 echo `cat $temp_id | awk '{ print $2 }'`" {" >> $DBFILE
-echo "\thostname\t$1" >> $DBFILE
+printf "\thostname\t$1\n" >> $DBFILE
 cat $temp_pass >> $DBFILE
-echo "\tcontact\t\t$2" >> $DBFILE
-echo "\temail\t\t$3" >> $DBFILE
-echo "\tservice\t\tdns" >> $DBFILE
+printf "\tcontact\t\t$2\n" >> $DBFILE
+printf "\temail\t\t$3\n" >> $DBFILE
+printf "\tservice\t\tdns\n" >> $DBFILE
 echo "}" >> $DBFILE
 kill -HUP `cat $DHISD_PID` 
 
--- a/register-q.sh
+++ b/register-q.sh
@@ -28,11 +28,11 @@
 #
 echo "" >> $DBFILE
 echo `cat $temp_id | awk '{ print $2 }'`" {" >> $DBFILE
-echo "\thostname\t$1" >> $DBFILE
+printf "\thostname\t$1\n" >> $DBFILE
 cat $temp_keys >> $DBFILE
-echo "\tcontact\t\t$2" >> $DBFILE
-echo "\temail\t\t$3" >> $DBFILE
-echo "\tservice\t\tdns" >> $DBFILE
+printf "\tcontact\t\t$2\n" >> $DBFILE
+printf "\temail\t\t$3\n" >> $DBFILE
+printf "\tservice\t\tdns\n" >> $DBFILE
 echo "}" >> $DBFILE
 kill -HUP `cat $DHISD_PID` 
 
