How to use rDNS with OVH/Hetzner https://www.softaculous.com/board/index.php?tid=15900 <![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47921 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.
]]>
Wed, 20 Nov 2019 18:01:13 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47921
<![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47901
]]>
Tue, 19 Nov 2019 10:53:57 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47901
<![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47886
How well does it work when you have both Hetzner and OVH? Will the editvs.php be able to handle both?]]>
Mon, 18 Nov 2019 20:56:05 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47886
<![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47881
I made an example with hetzner webservice API (need to create a user for that in hetzner robot):

PHP Code

<?php
function __editvs($old_vps$new_vps){
#Hetzner Curlcall:#curl -u user:password https://robot-ws.your-server.de/rdns/[IP] -d ptr=[HOSTNAME] -X PUT}
# Translated into PHP curl:

$ch curl_init();

//we take the first value from $new_vps['ips'] => reset
curl_setopt($chCURLOPT_URL'https://robot-ws.your-server.de/rdns/'.reset($new_vps["ips"]));
curl_setopt($chCURLOPT_RETURNTRANSFER1);
curl_setopt($chCURLOPT_CUSTOMREQUEST'PUT');
curl_setopt($chCURLOPT_POSTFIELDS"ptr=".$new_vps['hostname']);curl_setopt($chCURLOPT_USERPWD'YOURWEBSERVICEUSER' ':' 'YOURWEBSERVICEPASSWORD');
$headers = array();$headers[] = 'Content-Type: application/x-www-form-urlencoded';curl_setopt($chCURLOPT_HTTPHEADER$headers);
$result curl_exec($ch);
if (
curl_errno($ch)) {    echo 'Error:' curl_error($ch);}
curl_close($ch);
?>


I did not test this, but it should be enough to point you into the right direction.
remember to change your username and password in this example and to secure access to your webservice user by setting Ip restriction in the robot.
]]>
Mon, 18 Nov 2019 14:48:30 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47881
<![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47880
Could you point me in the right direction?]]>
Mon, 18 Nov 2019 14:23:59 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47880
<![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47879 ]]> Mon, 18 Nov 2019 13:48:59 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47879 <![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47878
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.]]>
Mon, 18 Nov 2019 13:14:39 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47878
<![CDATA[How to use rDNS with OVH/Hetzner]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47870 These IP addresses and the rdns entries are managed by your provider, so you need to set the rdns in their controlpanel not in your pdns server.
]]>
Mon, 18 Nov 2019 10:53:13 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=1#p47870
<![CDATA[]]> https://www.softaculous.com/board/index.php?tid=15900&tpg=0#p47869
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]]>
Mon, 18 Nov 2019 10:43:23 GMT https://www.softaculous.com/board/index.php?tid=15900&tpg=0#p47869