SA-MP Forums Archive
Reverse DNS lookup doesn't work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Reverse DNS lookup doesn't work (/showthread.php?tid=620716)



Reverse DNS lookup doesn't work - justjamie - 02.11.2016

Hello.
I am using this plugin:
https://sampforum.blast.hk/showthread.php?tid=75605


And this is my code
PHP код:
/* ============================================================================= */
COMMAND:testing(playerid,params[])
{
    
SendClientMessage(playerid,-1,sprintf("%s",rdns(Ip(playerid))));
    return 
1;
}
/* ============================================================================= */ 
Weirdly it only outputs my ip adress, instead of my hostname.
Why is that?


Re: Reverse DNS lookup doesn't work - Vince - 02.11.2016

Probably because a hostname doesn't exist for that IP, like when you're testing on a local network.


Re: Reverse DNS lookup doesn't work - justjamie - 02.11.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
Probably because a hostname doesn't exist for that IP, like when you're testing on a local network.
I am not testing it on a local network.
I am currently using a cyberghost IP.