Extension:DNSlookup

What can this extension do?
This extension adds a very simple DNS lookup using the PHP gethostbyname or gethostbyaddr functions depending on if it is called with a hostname or an IP address. It can be used either through a parser function or through a tag.

Usage
It will print the IP address or the reverse lookup of the IP address given. If the parameter does not resolve, it will print an error.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: