Community discussions

MikroTik App
 
User avatar
mambotech
Member Candidate
Member Candidate
Topic Author
Posts: 112
Joined: Thu Jun 08, 2006 6:20 pm

DDNS Script

Thu Aug 16, 2007 12:31 am

Hi Guy's I use a company call Microtech for my DNS and I trying to workout how I intergrate this into a script : Specifically the single line authentication and update if possible.

Dynamic DNS update protocol

Microtech's DNS update protocol is described below. This simple to use protocol can easily be integrated into scripts, routers etc.

The HTTP requests can be made in HTTPS (secure) or plain HTTP modes. HTTP requests will be accepted on ports 80 and 8147. Port 8147 is usefull for bypassing ISP's stealthy proxies. HTTPS requests are accepted on port 443.

Single line authentication and update

"http://www.mtgsy.net/dns/update.php?ema ... ip=0.0.0.0"


Variable Function description
username This can be either the account username (email address) or the name of an individual dynamic domain on your account. If the account name is specified all domains on the account are updated. Update single domains separately by specifying the domain name.
pass The account password
hb 1 or 0. Indicates whether our system should send out heartbeats and set the domain offline if they are not responded to.
stealth 1 or 0. Indicates whether the offline page redirection should be made in a hidden frame to attempt to retain the original URL in the browser.
port HTTP Port number. If port is 80 DO NOT USE. This option is used if your ISP blocks port 80 and you want to run a web site on an alternative port number. Please note, as this is designed to redirect HTTP requests it will only function on the 'www' record of your domain.
ip Optional. If included sets your domain to point to the specified IP address. If not specified the system will auto detect your IP and set it accordingly.
offlineurl The URL you would like http visitors re-directed to if you are marked off-line. Must a FULL url in the format 'http://www.youdomains.com/url'.
offlinetext The message to display to http visitors when you are off-line
mx Specifies an MX record. Specify server name in full with a terminating


Thanks Mark
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Re: DDNS Script

Thu Aug 16, 2007 10:16 am

I suppose you could pull this off in V3.0 using the new "fetch" command, like this:
/tool fetch address=<ip-address-of-www.mtgsy.net> port=8147 path="dns/update.php?email=username&pass=password&hb=0&ip=0.0.0.0"
Although I have still slight problems getting HTTP requests to work reliably...

And of course you would have to add your current (dynamic) ip address via a script command. Don't remember the exact syntax for 3.0 - I think something changed with regard to adding strings together...

Hope that helps to direct you in the right direction for your own experiments ;-)

Best regards,
Christian Meis
 
User avatar
mambotech
Member Candidate
Member Candidate
Topic Author
Posts: 112
Joined: Thu Jun 08, 2006 6:20 pm

Re: DDNS Script

Thu Aug 16, 2007 1:53 pm

Hi Christian,

Thanks for the info.

I now have 2 problems
1. I can't seem to find any info on the changes in scripting for V3 RC2?
2. Since upgrading to V3 RC2 when trying to pay using PayPal after filling in the registration form, the page hangs at https://www.paypal.com/cgi-bin/webscr for about 10mins then fail with cannot find server. Is there a problem with the walled garden?



Thanks Mark
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Re: DDNS Script

Thu Aug 16, 2007 4:24 pm

1. I don't know of any documentation for that right now - trial and error ;-)

2. That's a hotspot question/usermanager question, right? ;)
Having not everything necessary in the walled garden COULD produce such results, perhaps, but hard to tell with that information...

Best regards,
Christian Meis
 
User avatar
mambotech
Member Candidate
Member Candidate
Topic Author
Posts: 112
Joined: Thu Jun 08, 2006 6:20 pm

Re: DDNS Script

Thu Aug 16, 2007 4:39 pm

Thanks,


Mikrotik support are currently looking at the problem ....it definitely seems to be a walled garden issue. I have all the correct information in there ... Oh well wait for a reply from them.


Mark

Who is online

Users browsing this forum: No registered users and 16 guests