03.05.2009, 06:46
(
Последний раз редактировалось Incognito; 31.01.2016 в 21:45.
)
DNS Plugin
This plugin provides functionality for DNS lookups and reverse DNS lookups.
Natives
Callbacks
Create a directory called "plugins" inside of the server directory if one does not already exist. Place the plugin file (dns.dll or dns.so) inside of this directory.
Add the following line to server.cfg so that the plugin will load the next time the server starts:
Windows:
Linux:
On Windows, add dns.inc to the pawno\include folder. Include this file in any of the scripts the server is running:
Recompile the scripts with any desired natives and callbacks provided by the include file. Start the server.
Download
The latest compiled binaries will always be here:
GitHub Releases Page
The source can be browsed here. This repository can also be cloned.
The Windows version requires the Microsoft Visual C++ 2010 Redistributable Package.
This plugin provides functionality for DNS lookups and reverse DNS lookups.
Natives
- dns(const host[], extra = 0);
- Resolves the hostname to an IP address
- rdns(const ip[], extra = 0);
- Resolves the IP address to a hostname
Callbacks
- OnDNS(host[], ip[], extra);
- Called upon DNS lookup
- OnReverseDNS(ip[], host[], extra);
- Called upon reverse DNS lookup
- GetPlayerHost(playerid);
- Wrapper for rdns that can obtain a player's hostname
Create a directory called "plugins" inside of the server directory if one does not already exist. Place the plugin file (dns.dll or dns.so) inside of this directory.
Add the following line to server.cfg so that the plugin will load the next time the server starts:
Windows:
Код:
plugins dns.dll
Код:
plugins dns.so
pawn Код:
#include <dns>
Download
The latest compiled binaries will always be here:
GitHub Releases Page
The source can be browsed here. This repository can also be cloned.
The Windows version requires the Microsoft Visual C++ 2010 Redistributable Package.