Community discussions

MikroTik App
 
MacDeath
just joined
Topic Author
Posts: 14
Joined: Wed Jul 07, 2004 11:37 pm

Ip address lookups.

Wed Oct 06, 2004 11:42 pm

Hi,

I would like to connect 2 sites via a PPTP tunnel, however, both sites have a dynamic DNS. I have set the PPTP server up, and a windows machine on the network changes a dynamic dns server. On the remote side, after the link goes down, the router must re-dial the server on a FQDN, and not on a fixed IP address. Is there a tool or a script that can look up a new IP address? eg) nslookup or the likes, so the output can be given to another script which will then change the IP address of the server?

Please help if you can,

MacDeath
 
User avatar
[ASM]
Member Candidate
Member Candidate
Posts: 284
Joined: Sun Jun 06, 2004 12:59 am
Location: Sofia, Bulgaria
Contact:

Thu Oct 07, 2004 3:30 pm

it will be something like this:

add schedule rule with script like this
/interface pptp-client set pptp-out1 connect-to=[:resolve host.name.com]
[/code]
 
MacDeath
just joined
Topic Author
Posts: 14
Joined: Wed Jul 07, 2004 11:37 pm

Thu Oct 07, 2004 6:43 pm

Thanks very much, works like a charm.

I couldn't, and still cant find any reference to :resolve in the docs. Is there another reference guide that I have not found?
 
User avatar
[ASM]
Member Candidate
Member Candidate
Posts: 284
Joined: Sun Jun 06, 2004 12:59 am
Location: Sofia, Bulgaria
Contact:

Thu Oct 07, 2004 8:56 pm

I think that this is new in 2.8.17... Found it incidently :)
 
MacDeath
just joined
Topic Author
Posts: 14
Joined: Wed Jul 07, 2004 11:37 pm

Thu Oct 07, 2004 11:44 pm

I'm using 2.8.10 still, and it is working. :D

Who is online

Users browsing this forum: mikellubowitz, Strikysha, Zotyamester and 53 guests