Hi everyone,
I've recently set up a little OpenVPN network, that allows all the clients that are connected to communicate with each other in a secure way. The VPN itself works perfectly fine.
Now I'd like all clients that connect to automatically get a DNS hostname as a subdomain of users.geek-net.de, according to the CN of the certificate they authenticated with. So, the user mistagee would get mistagee.users.geek-net.de.
Currently, I'm using a cron-job that runs a PHP script to achieve that. The PHP script parses the status.log file, generates DNS entries from it and writes these into PowerDNS's mysql database, which then answers questions. That works - but is there a better way to do it? :/
Kind regards, Michael