Posted By: northnetworking on November 18, 2019, 10:43 am |
Hello,
I have setup two PDNS server and they are working fine. I added a rDNS to one of my VPS but after a day, when I check the rDNS, the rDNS is still the default one at my provider and not what I set in Virtualizor. So how do you setup rDNS in Virtualizor to work on IPs that you rent from OVH or Hetzner? Thanks ----------------------- Networking made easy contact[at]northnetworking.com https://northnetworking.com |
Posted By: northnetworking on November 18, 2019, 1:14 pm | Post: 2 |
Exactly my point.
I'm guessing the rDNS in Virtualizor only works when you own the IPs or rent them with the provider announcing the IPs towards you. ----------------------- Networking made easy contact[at]northnetworking.com https://northnetworking.com |
Posted By: wolke on November 18, 2019, 1:48 pm | Post: 3 |
Why don´t you use hooks to change the rdns at your provider via API calls?
|
Posted By: northnetworking on November 18, 2019, 2:23 pm | Post: 4 |
Yeah, could work. Not sure how to do hooks with Virtualizor tho. I saw the docs on hooks, but from the quick look it only has hooks for after config, after create, before delete, after delete etc?
Could you point me in the right direction? ----------------------- Networking made easy contact[at]northnetworking.com https://northnetworking.com |
Posted By: northnetworking on November 18, 2019, 8:56 pm | Post: 6 |
Thank you!
How well does it work when you have both Hetzner and OVH? Will the editvs.php be able to handle both? ----------------------- Networking made easy contact[at]northnetworking.com https://northnetworking.com |
Posted By: wolke on November 19, 2019, 10:53 am | Post: 7 |
In that case you need to verify first which provider is in charge for the given IP and then call the specific providers API.
|
Posted By: wolke on November 20, 2019, 6:01 pm | Post: 8 |
Found that example too buggy to be useful. Made a working one (just replace username and password obviously) which works right away with hetzner (using their php client).
You can download the php client directly from hetzner at: https://robot.your-server.de/downloads/robot-client.zip or just use the ready template attached to this posting.Take care not to overwrite your editvs.php file if you are already using it. |