shelluk Posted June 23, 2008 Share Posted June 23, 2008 Any ideas on how I could find out the nameservers for a given domain? Using the Pear module Net_DNS at the moment to query domain DNS info, but I would like to add the function to find out the actual nameservers for the domain. Looked for any other modules etc. which can give me this but found nothing. Does any one know of anything I've missed? Thanks, Shell Link to comment https://forums.phpfreaks.com/topic/111479-solved-php-find-out-nameservers-for-a-domain/ Share on other sites More sharing options...
trq Posted June 23, 2008 Share Posted June 23, 2008 Not sure if theres anything directly available within php but the unix command dig should hellp you. You could call it through php's exec function if need be. Link to comment https://forums.phpfreaks.com/topic/111479-solved-php-find-out-nameservers-for-a-domain/#findComment-572158 Share on other sites More sharing options...
shelluk Posted June 23, 2008 Author Share Posted June 23, 2008 Thanks. Ended up using this and -short tag for simplicity. Link to comment https://forums.phpfreaks.com/topic/111479-solved-php-find-out-nameservers-for-a-domain/#findComment-572375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.