DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-07-04 02:15:43

iazmin
Member
Registered: 2008-09-10
Posts: 55

Run perl script

I am trying to setup DNS relay. By using this, it would enable us to hook-up to internet by passing the payment requirement when ever you have WIFI hotspots e.g. in airport, hotel, etc.

The idea for this installation can be read further here. I have the perl script downloaded but I just could not run the perl script. I know my perl should work because I used it before to install other perl things.

the following is the error:

Code:

root@nashawa:/mnt/usb/ffp/home/root/dnsrelay# perl nomde.pl  -i 0.0.0.0 server.example.com
-sh: perl: not found
root@nashawa:/mnt/usb/ffp/home/root/dnsrelay#

I already edit the script to reflect the actual location of the perl but this persist


Attachments:
Attachment Icon ozymandns_src_0.1.tgz, Size: 9,095 bytes, Downloads: 255

Offline

 

#2 2009-07-04 12:37:20

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Run perl script

did you install perl?

Offline

 

#3 2009-07-04 14:38:32

iazmin
Member
Registered: 2008-09-10
Posts: 55

Re: Run perl script

fonz wrote:

did you install perl?

Aiyo! thank fonz...yes I forgot I did not install it...I recalled that I reinstalled the fun_plug without perl last time.

Offline

 

#4 2009-07-04 15:42:50

iazmin
Member
Registered: 2008-09-10
Posts: 55

Re: Run perl script

OK, I managed to install this successfully. the following are all the perl modules that must be installed before you can run this nomde.pl script. before that make sure you install perl as fonz told earlier. All this modules can be retrieved from search.cpan.org
Install all the modules starting from #1
1. libwww-perl-5.828.tar.gz
2. LWP-UserAgent-ProxyAny-1.02.tar.gz
3. URI-1.38.tar.gz
4. Net-IP-1.25.tar.gz
5. Net-DNS-0.65.tar.gz
6. Digest-SHA1-2.12.tar.gz
7. Digest-HMAC-1.01.tar.gz
8. MIME-Base32-1.01.tar.gz

Just download all the modules and then:

Code:

tar xfz *.tgz
cd <module>
perl Makefile.PL
make
make install
cd ..

After that run nomde.pl:

Code:

perl nomde.pl -i 0.0.0.0 <your home dynamic DNS>

If successful, it should have this message:

Code:

BEGIN failed--compilation aborted at nomde.pl line 9.
root@nashawa:/mnt/usb/ffp/home/root/dnsrelay# perl nomde.pl -i 0.0.0.0 abuhawa.homeip.net

Creating TCP socket 0#53 - done.
Creating UDP socket 0#53 - done.
Waiting for connections...
Waiting for connections...

Make sure you open the port #53 on your home router.

I am working out the set up on the client side now. Will share later.

Last edited by iazmin (2009-07-04 16:16:32)

Offline

 

#5 2009-11-20 20:07:37

haabaato
New member
Registered: 2009-06-24
Posts: 3

Re: Run perl script

Did you manage to get this to work?
If so, are you running a DNS server on the DNS-323 as well, or on a different box?  I tried to delve into the complex world of DNS but couldn't figure out a simple DNS server to try out.  I'll give dnsmasq a shot again once I have some time.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB