dns lookup using php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anfetienne
    Contributor
    • Feb 2009
    • 424

    dns lookup using php

    hi,

    i have a small webserver that i host for media only its connected to my router and is connected nicely to the WWW. the problem im having is that my router ip addresses changes every so often, to counter this I have dyndns and it automatically updates the ip address to my selected hostname.

    i am using wowza media server and unfortunately it doesnt work with hostnames only ip addresses and flash doesnt cater for the dynamic ip changes. the actionscript is still in BETA so i will not chance it incase it doesnt work later on.

    to get around it i want to use php to look up the hostname and bring back the current ip address to the hostname so it can pass the vars to the flash file so it can connect to the media server.

    i have a link to a site that does it but i cant find a site with a script or tutorial... any one have any ideas as to where i can find one?



    i know how to get a hostname by a users ip address but cant work it out the other way round
  • anfetienne
    Contributor
    • Feb 2009
    • 424

    #2
    i've finally found something called php net tools... i've attached the zip file for anyone who wants to do this kind of thing
    Attached Files

    Comment

    • thilaka12
      New Member
      • Nov 2012
      • 2

      #3
      Hi i did DNS lookup at whoisxy.com here they provide all necessary information about the particular domain name at free of cost.

      Comment

      Working...