VPN - Automatically assign DNS names to openVPN clients?

This is Interesting: Free IT Magazines  
Home > Archive > VPN > May 2007 > Automatically assign DNS names to openVPN clients?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Automatically assign DNS names to openVPN clients?
Michael Ziegler

2007-05-30, 7:12 pm

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
Rick Merrill

2007-05-30, 7:12 pm

Michael Ziegler wrote:
> 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



I did not read very carefully, but you should look into no-ip.org
Michael Ziegler

2007-05-30, 7:12 pm

Rick Merrill wrote:
> I did not read very carefully, but you should look into no-ip.org


That wouldn't work the way I want it to ;)

no-ip.org would allow people to get themselves a hostname, but I want
the server to automagically assign the hostnames by itself...

Greetings,
Michael
Rick Merrill

2007-05-30, 7:12 pm

Michael Ziegler wrote:
> Rick Merrill wrote:
>
> That wouldn't work the way I want it to ;)
>
> no-ip.org would allow people to get themselves a hostname, but I want
> the server to automagically assign the hostnames by itself...
>
> Greetings,
> Michael



What you want is how no-ip.org got started. To do that you will have
to become their competition!-)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com