Jump to content
Froxlor Forum


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About ServiusHack

  • Rank
  1. ServiusHack

    Dynamic DNS in Froxlor

    Hi folks, it has been quite some time ago that DynDNS cut off their free offering. I was in need of another solution. Since I'm already using Froxlor for a hosting server it seemed like a natural addition to implement dynamic DNS in Froxlor. Today I want to present this modification to you after it's been in use for several months. It basically works like this: A user calls http://your-froxlor.com/updateip.php toset a new IP for one of his domains. As soon as the bind configuration is updated the new IP is in DNS and will be returned when resolving the domain. As with the number of domains and other resources it can be configured how many dynamic domains (domains for which the IP can be updated by calling updateip.php) a user can have. The user can enable the dynamic DNS feature for any of his domains. The IP can also be set through the administrative interface. Calling the updateip.php script is fairly simple. It supports HTTP authentication and authentication using request parameters. A domain must be set for which the IP will be updated and either an IPv4 or IPv6 address must be provided or the auto-detection feature is used. An example: http://your-froxlor.com/updateip.php?domain=home.my-domain.com&ipv4= The dynamically changed IP (either set through the admin interface or by using updateip.php) will be set as the domain's IP instead of the server IP. When dynamic DNS is enabled for a domain its TTL is set to 1 to ensure changes to the IP propagate quickly. You can have a look at the code at https://github.com/ServiusHack/Froxlor/tree/dynamic-dns. I've made this post in the hope for any feedback on the feature or the code. If there is some interest in merging this I'm more than happy to fix any issue and make a pull request. Best Regards Severin Leonhardt
  2. Hi Froxlor Team, I've been testing several tools like Froxlor and finally decided to use Froxlor. As there are some features I miss in Froxlor I want to dig into Froxlor and help with the development. When I updated to 0.9.14 I noticed that the icons in awstats are not shown anymore. Looking through the code the problem seems to be in the getStats() method in scripts/jobs/cron_tasks.inc.http.10.apache.php. In my case line 495 is relevant as it checks if $domain['customerroot'] has a different value than $domain['customerroot'] and only then the alias for the stats is inserted. The values for both keys come directly from the database around line 800. Printing out the $domain variable shows both keys with the exact same value in all cases. And isn't that default for the document root, to always be the one set for that customer? So in that case the alias will never be set, as in my case. What is the reason for comparing the documentroot of the customer with the one for the domain and only setting the alias if they differ? Best Regards, Severin Leonhardt