I need to get the information for a particular domain name using the php and some linux commands.So, i have tried a small program in php in Lamp Environment. When the user gives,www.google.com.My program uses the below commands and functions ping,dig,host,get_host_names etc.To retrive the informations. But i need to know what are list of linux commands or php functions to get the dns information for a domain. Is Any API are avialable in the net to get the informations.Is Rackspace or Amazon provide some API regarding the Domain Name. Can any one suggest me the right path?