Reverse DNS lookup doesn't work
#1

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?
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)