techno surprises

July 19, 2007

Translating domain_name to ip_address

Domain names can be translated its related ip addresses.

In windows getting ip_address from domain_name

  1. Click on START menu
  2. Click on RUN and type ‘ cmd
  3. then write ping yahoo.com
  4. and get the ip addres of yahoo

In any UNIX based system getting ip_address from domain_name

  1. Run SHELL client of operating system
  2. type command : ping yahoo.com
  3. and get the ip addres of yahoo

In PHP(web based programming language) getting ip_address from domain_name

<?php
$ip = gethostbyname(‘yahoo.com’);

echo $ip;
?>

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.