Community discussions

MikroTik App
 
Posse7x
just joined
Topic Author
Posts: 12
Joined: Thu Oct 06, 2016 4:11 pm

PPP Secrets - DNS Server

Wed Apr 03, 2019 12:42 pm

Hello,

i am responsible for the management of alll mikrotiks (about 500).

to get an easy access to them they all got a "call home" function (building up an sstp tunnel to my office, using customer number as a user).

is there an option to link my sstp secrets to the dns of my mikrotik

eg.
user 431015_001 is connecting and gets the ip 10.58.1.1, want to get automatically the dns entry 431015_001.local

regards
 
joegoldman
Forum Veteran
Forum Veteran
Posts: 775
Joined: Mon May 27, 2013 2:05 am

Re: PPP Secrets - DNS Server

Wed Apr 03, 2019 1:48 pm

Yes you could use the On Up and On Down scripting tool in ppp profiles, go over to the scripting part of the wiki and you'll be able to start making some scripts

https://wiki.mikrotik.com/wiki/Manual:Scripting
 
Posse7x
just joined
Topic Author
Posts: 12
Joined: Thu Oct 06, 2016 4:11 pm

Re: PPP Secrets - DNS Server

Wed Apr 10, 2019 1:41 pm

i already tried that on with the normal dhcp server and it works.

but i have no clue how to set up a script that works for my ppp-profiles
after all there a few hundred ip addresses obatinable
 
McSee
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Tue Feb 26, 2019 12:49 pm

Re: PPP Secrets - DNS Server

Wed Apr 10, 2019 6:47 pm

There are variables user and remote-address accessible within On Up and On Down scripts in ppp profile which you can use to add and remove static DNS entries.