Page 1 of 1

PPP Secrets - DNS Server

Posted: Wed Apr 03, 2019 12:42 pm
by Posse7x
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

Re: PPP Secrets - DNS Server

Posted: Wed Apr 03, 2019 1:48 pm
by joegoldman
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

Re: PPP Secrets - DNS Server

Posted: Wed Apr 10, 2019 1:41 pm
by Posse7x
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

Re: PPP Secrets - DNS Server

Posted: Wed Apr 10, 2019 6:47 pm
by McSee
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.