LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-10-2007, 08:44 AM   #1
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 329

Rep: Reputation: 30
Bind Dynamic DNS + OpenVPN


Hello,

I am trying to find information that will help me setup OpenVPN to update bind DNS. I would like to be able to connect to my clients using their-host-name.vpn.mydomain.tld instead of 10.109.0.x.

I have the ipp.txt file in /etc/openvpn and could setup DNS by hand, but I would rather it be done automatically.

I tried searching Dynamic DNS Openvpn on google, but all I found was push-option dns ( which I think is to specify a DNS server to the connecting client) and tutorial's that resemble the services provided by no-ip.org, but for the public address not the vpn address.

Thanks,

David

Last edited by dlublink; 10-10-2007 at 08:47 AM.
 
Old 10-12-2007, 03:56 PM   #2
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
I presume you have a local DNS server. I think there are a number of ways you could do it but probably the simplest is to write a script that uses nsupdate to update the DNS server zones and call it from an openvpn script using either the learn-address script command or alternatively client-connect and client-disconnect scripts. Either of these methods pass parameters to the script file including the client name and IP address.

I've set up a basic learn-address script which just logs connect/disconnect times for clients but extending it to update my DNS server would be straightforward. Unfortunately my clients are called client1, client2 etc so it wouldn't benefit me much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OPENVPN: bind client certificates to a machine yongitz Linux - Security 2 01-19-2007 02:45 AM
OpenVPN DNS Problem brokenflea Linux - Networking 12 11-14-2006 06:21 AM
LXer: DNS: The Bind Leading the Bind LXer Syndicated Linux News 0 06-15-2006 11:33 PM
Can BIND be used with a dynamic IP address? daihard Linux - Software 4 04-24-2006 07:45 PM
Fedora Core 4 DHCPD and BIND, cannot get Dynamic DNS to work trainpic Linux - Networking 2 02-25-2006 05:27 PM


All times are GMT -5. The time now is 05:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration