HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=21)
-   -   Can MyDNS+Config be used as a DynDNS server? (http://www.howtoforge.com/forums/showthread.php?t=12262)

DVS 23rd April 2007 11:24

Can MyDNS+Config be used as a DynDNS server?
 
The title sais it all.

Can MyDNS and MyDNS Config be used to play
the role of a Dynamic DNS server like for instance
DynDNS.org and all the other Dynamic DNS providers
out there.

(I know - why go thru the trouble of setting this up,
why don't I just use DynDNS.org or any of the others -
is the question you want to ask. It is simple, we get
"local" ADSL where I come from and when you have
a "local" account, you don't get access to any of
the Dynamic DNS hosts. I have the servers, I have
the IP's, so why the h3ll not is how I see it.)

A "yes" or "no" and perhaps a URL if needed will do fine.

Thanx a mill!

till 24th April 2007 11:02

Generally it can be used as Dynamic DNS-Server. But you will have to write some scripts that update the IP addresses of your DNS-Records dynamically in the database.

DVS 25th April 2007 08:19

:-/
 
So out of the box - No.

Now if only I had some skills.... :(

silverdomains 30th June 2010 09:43

working on something like that :). will let you know when i have something out :)

mjcrank 4th September 2010 10:39

need ddns / mydns / mydnsconfig solution
 
Quote:

Originally Posted by till (Post 69452)
Generally it can be used as Dynamic DNS-Server. But you will have to write some scripts that update the IP addresses of your DNS-Records dynamically in the database.

Can anyone point me to a working script, or a definition of the modifications required for
1) an address update, and
2) a new machine addition?

Though I've put some time into this, I'm approaching the deadline and I'm not convinced that I'm updating the tables correctly. Here's a little background:

I use dns applliances within each of several cloned test systems and I use MyDNSConfig to initialize them. There are some dynamic addresses I have to deal with and I need a ddns update solution.

I found 'dyndns.php' (the server process) and 'dyndns.sh" (the client) at http://www.miljan.org/wiki/index.php...DNS_with_MyDNS

This seems promising and with a few changes, I've been able to see it update both 'rr' and 'soa' but it does not update all fields and it does not seem to handle the PTR record.

But now it turns out that I'm having a bit of trouble resolving names added with the gui and using 'dig' against the mydns server as well. Because this project is one of several, I haven't been able to stay on it as I'd like and I may have to start with a fresh install.

So time is running out, and I'd really appreciate pointers, an example script, some sql, an API....

Thanks for any help,
mjc

miljan 16th September 2010 19:42

Hi mjcrank, I am glad you found my script useful. :)

Could you please tell me what modifications did you make to the script and to perform what exactly? It should work out of the box so no changes should be needed (except for the initial configuration of course). Also, which fields would you like to see updated that are not being updated already?

As for the PTR, if you want I can update the script to perform PTR update as well. Just let me know.

Cheers,
Miljan

mjcrank 25th September 2010 09:15

dyndns.php tweaks
 
1 Attachment(s)
Miljan, thanks for the script and the reply.

I made just a couple of changes for my use. (the file is attached) Here are my notes:

# ereg() was deprecated, replaced with preg_match()
# debug 'echo's added
# insert fields to allow deletion from the gui


Regarding the reverse records, I added a record from the GUI (mydnsconfig) and that created the new reverse zone. After that, my next dynamic entry showed up with a PTR record so, with a slight change in deployment, I might get away without asking for changes. It's late and I didn't verify this by starting from scratch.

Again, thanks for the script and if you make any changes, I'd like to know.

mjcrank

jjohnssmith 21st October 2010 12:23

Make sure you have "allow-axfr = yes" and "listen = 127.0.0.1" or "listen = *" in /etc/mydns.conf.
dig @localhost -t axfr


All times are GMT +2. The time now is 13:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.