blessani Posted September 18, 2007 Share Posted September 18, 2007 Hi, I've always used DynDNS to manage the dynamic IP of my home server - but considering I have a proper domain for my business - I was wondering if I could maybe create a subdomain to manage my dynamic IP. My webserver is rented and not onsite - but is it still possible to use it to manage the IP of my home file server? If so, how? Edit: I have pretty thorough access to the web server (being dedicated), I can manage the DNS zone settings manually - but is there a way to get my server to update those, perhaps with a php script or otherwise. I have set it up manually now - but I don't want to have to change it myself every time the DSL modem redials. Ben Quote Link to comment Share on other sites More sharing options...
blessani Posted September 18, 2007 Author Share Posted September 18, 2007 http://vampiroz.org/2006/08/dynamic-dns-up...php-script.html Doesn't matter I found something to that effect, now the trick is getting it to work! Quote Link to comment Share on other sites More sharing options...
blessani Posted September 18, 2007 Author Share Posted September 18, 2007 Stupid thing won't work, the hunt continues Quote Link to comment Share on other sites More sharing options...
VaKo Posted September 18, 2007 Share Posted September 18, 2007 Could you not just use a dynDNS domain and cname your subdomain to that? If that fails you need to script bind to dynamically update the subdomain: http://www.google.co.uk/search?hl=en&q...dynamic+updates Quote Link to comment Share on other sites More sharing options...
blessani Posted September 18, 2007 Author Share Posted September 18, 2007 Ok after a good few hours of reading, I have a grasp of how it would be possible - but unfortunately, I do not have that level of access to the server. A quick rundown for anyone searching... Create the PHP file which will basically create a temporary file. Inside this file is the commands for the nix command nsupdate server localhost zone subdomain.domain.com update delete subdomain.domain.com A update add subdomain.domain.com 14400 A new_ip_address send Then using, exec('/bin/nsupdate /path_to_temp_file', $result) That will run the command and change the DNS details, not massively complex, but unless you have decent rights to the server, you'll just get an access denied error. Time for me to close this project! Quote Link to comment Share on other sites More sharing options...
blessani Posted September 18, 2007 Author Share Posted September 18, 2007 Could you not just use a dynDNS domain and cname your subdomain to that? If that fails you need to script bind to dynamically update the subdomain: This is what I've settled with :D Not 100% ideal, but thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.