AXFR - Error "tcprules: fatal: unable to parse this line: x.x.x.x:allow"

Hi guys,

I am allowing two IPs for AXFR, when I “make” it, I get the below error. May I know if you guys have idea why it unable to parse the line?

Snippets:

[root@server axfrdns-x.x.x.x]# make
tcprules tcp.cdb tcp.tmp < tcp
tcprules: fatal: unable to parse this line: 173.244.206.26:allow
make: *** [tcp.cdb] Error 100

In my “tcp” file there are two lines as below:

173.244.206.26:allow
88.198.106.11:allow

I’m following the guide on this page: http://www.interworx.com/support/faq/how-to-sync-iworx-dns-to-a-non-iworx-dns-server/

Any help would be much appreciated! Thank you! :slight_smile:

P/S: Is there a bug on the forum? I can’t view the styling I made to my post e.g. italic and bold.

Hi Shyuan

I hope you don’t mind, but I have tested on one of our systems (see below) and first test was a single IP, then followed by allowing 2 IP, and it worked lovely.

I would probably restart server and try again, just incase theres anything holding on IP’s etc… and if it still will not make, then I would either open a support ticket or have a look at your log (you’ll see I have posted below) which may help in identifying where it is failing. I am not too sure though, if this falls within the remit of IW support, so you may need to ask.

I hope you don’t mind me asking though, when you copied the instructions, did you delete the line numbers, which appear at the end of the command, ifyou double clicked the command line from IW instructions on website (I’m thinking you did, so please do not shout at me)

I hope that helps and sorry I could not be more helpful.

Many thanks

John

e.f.g.h is the IP address of the external DNS server

a.b.c.d is the IP address of the main Interworx DNS server

echo ‘e.f.g.h:allow’ >> /service/axfrdns-a.b.c.d/tcp

cd /service/axfrdns-a.b.c.d/
make

svc -t /service/axfrdns-*

[root@nnnn ~]# echo ‘e.f.g.h:allow’ >> /service/axfrdns-a.b.c.d/
tcp
[root@nnnn ~]# cd /service/axfrdns-a.b.c.d/
[root@nnnn axfrdns-a.b.c.d]# make
tcprules tcp.cdb tcp.tmp < tcp
[root@nnnn axfrdns-a.b.c.d]# ls
env log Makefile run supervise tcp tcp.cdb
[root@nnnn axfrdns-a.b.c.d]# vim tcp
[root@nnnn axfrdns-a.b.c.d]# echo ‘e.f.g.h-second-IP:allow’ >> /service/ax
frdns-a.b.c.d/tcp
[root@nnnn axfrdns-a.b.c.d]# echo ‘e.f.g.h:allow’ >> /service/ax
frdns-a.b.c.d/tcp
[root@nnnn axfrdns-a.b.c.d]# cd /service/axfrdns-a.b.c.d/
[root@nnnn axfrdns-a.b.c.d]# make
tcprules tcp.cdb tcp.tmp < tcp
[root@nnnn axfrdns-a.b.c.d]# ls
env log Makefile run supervise tcp tcp.cdb
[root@nnnn axfrdns-a.b.c.d]# vim tcp
[root@nnnn axfrdns-a.b.c.d]#

Hi John,

I tried this today, it works! I wonder why it didn’t work yesterday despite doing it the right way and I can definitely confirm that I didn’t copy over the line numbers. :confused:

Anyway thank you very much for trying it out for me! :slight_smile: