News Feed
Jobs Feed
Sections




News Archive
Vanessa Vasile's Blog:
Using PHP to Perform DNS Lookups
July 01, 2010 @ 11:37:51

In a handy little post to her blog today Vanessa Vasile has an example of how to use built-in PHP functions to perform DNS lookups in your scripts.

PHP has a couple DNS functions you can use to perform record lookups. Most of us are familiar with the two basic ones - gethostbyname() and gethostbyaddr(), both of which perform a single function '" returning a hostname or IP address.

She also mentions the gethostbynamel and dns_get_record functions that can give you even more insight into the current DNS of a given domain (even returning only record-type specific information).

0 comments voice your opinion now!
dns lookup tutorial hostname


blog comments powered by Disqus

Similar Posts

PHP-GTK Community Site: Accessing geo-nick with Zend Framework (Zend_XmlRpc_Client)

Zend Developer Zone: AJAX Chat Tutorial Pt 5: Javascript, Sending Chat Messages, Screen Name Changes

Noupe.com: 20 Useful PHP Components & Tutorials for Everyday Project

Zend Developer Zone: MySQLND, MySQL_UH and other goodies available to PHP programmers

Zend Developer Zone: Tutorial : Using Zend Framework Without PDO


Community Events











Don't see your event here?
Let us know!


example symfony2 functional database rest phpunit development usergroup framework introduction opinion conference podcast interview language testing community zendframework2 release series

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework