Thread: [Plugin] DNS Plugin
View Single Post
Old 03/05/2009, 01:30 PM   #8
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Location: Oblivion
Posts: 843
Reputation: 2533
Default Re: [REL] DNS Plugin

I wanted to make a comment about this.

Reverse DNS is obviously very useful if you need to ban players on a hostmask say: *.their-isp.com. You could check the host off on connect and Kick() them. But:

Reverse DNS takes time to resolve and it's the duty of an SA-MP script to return execution to the server as quickly as possible. Calling this function will likely delay execution and result in lag for other players while the reverse DNS lookup is occuring. The only way to do this properly is for the DNS lookup to be threaded and call a callback like OnPlayerReverseDNS(playerid, rdns_string[]).

Kalcor is offline   Reply With Quote