Master2Slave DNS Replicator on FreeBSD 7.2

wsd

Verified User
Joined
Jul 9, 2010
Messages
48
Location
Denmark
Hi,

I can not get Master2Slave-0.1.4-RC6 to work on an FreeBSD 7.2 server?
I get this error on my slave, but not on my Masters DA server FreeBSD 7.2
So what am I missing to install on my slave server? so shopt get to work



ns1# ./getmaster2slave.dns.sh
Server: xx.xx.xx.xx
-------------------------
grep: /etc/named.conf: No such file or directory

thank you.. goodbye
/home/namedftp/zones/slaves.named.conf
shopt: not found
./in.sh: 50: Syntax error: "(" unexpected (expecting ")")
Working...
shopt: not found
./in.sh: 50: Syntax error: "(" unexpected (expecting ")")
Done!
 
Never heard of it.

1. Named.conf is not in /etc it is in /etc/namedb
2. Looks like your script is using commands that dont exist on freebsd.
3. It looks like the script is poorly written if it is complaining about missing ")"
 
Mater2Slave DNS Replicator is a package I paid to have written a bunch of years ago, and then released it under the GPL Version 2 license.

It was never tested on BSD and it's in eternal beta, because the author disappered before fully documenting it. That said, it works fine for me and for lots of others.

Yes, the locations may need to be changed for versions of Unix/Linux on which it's not been tested; it was written on, and I use it on, Red Hat Enterprise Linux and CentOS.

I don't see any shopt command anywhere in the code, so I'd suggest fixing the locations and testing it again.

If anyone is running it on FreeBSD successfully, please respond.

Jeff
 
I don't see any shopt command anywhere in the code, so I'd suggest fixing the locations and testing it again.
Jeff

In in.sh on line 44
# enabling extended globbing
shopt -s extglob

I fixing the locations and testing it again.

ns1# ./getmaster2slave.dns.sh
Server:
-------------------------

thank you.. goodbye
/home/namedftp/zones/slaves.named.conf
shopt: not found
./in.sh: 50: Syntax error: "(" unexpected (expecting ")")
Working...
shopt: not found
./in.sh: 50: Syntax error: "(" unexpected (expecting ")")
Done!
 
Last edited:
I've solved it.
Install bash
# portsnap update extract
# cd /usr/ports/shells/bash
# make install clean

change the file in.sh in line 1 from #! /bin/sh to #! /usr/local/bin/bash
and so it seems to be working, and there's not an error message
 
From wherre did you get the copy of Master2Slave DNS Replicator you're using? the in.sh file is not in my code, posted at my website. Neither is any reference to it.

Jeff
 
Then it's somone else's Master2Slave DNS Replicator, not mine. I wish they'd use a different name.

Thanks.

Jeff
 
Back
Top