News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Ken Guest's Blog: A response to "Better Postal/Zip Code Validation Method for CakePHP 1.2"

SitePoint PHP Blog: UTF-8 Email in PHP with eZ Components

Label Media Blog: Design Patterns in PHP - Decorator Pattern

NetTuts.com: Building Advanced Email Features With IMAP and PHP

DevShed: Creating a MySQL Abstraction Layer with Bridge Classes in PHP 5


Community Events





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


symfony tips introduction update interview podcast framework list zendserver deployment opinion language series package install release api laravel community library

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