Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-02-2004, 07:04 AM   #1
hansi umayangan
Registered: Aug 2004
Distribution: AS3
Posts: 81

Rep: Reputation: 15
Thumbs up no

How can i find out computer ip number using computer name

for example:

in windows simply i use ping command

ping computer-name

Reply from bytes=32 e<10ms TTL=128
Old 09-02-2004, 07:09 AM   #2
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
on linux, if you have a nameserver configured and if the name server knows the target host's ip ( that is, if the target host is listed in the nameserver records, called A records), it will return the ip address.

All important systems do have the A record on the nameserver.

You can use dynamic dns updates with dhcp to ensure that the hostname of each host that gets a dhcp address is promptly updated in the dns database.
Old 09-02-2004, 07:13 AM   #3
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
into a console type : ping computername

my output:

' root@egag12:/# ping
PING ( 56(84) bytes of data. '

( it keeps pinging , i use ctrl-c to exit )

Old 09-02-2004, 08:33 AM   #4
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
...or to find all IP's associated with the hostname, use the host utility...
hw@royne:~$ host has address has address


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dns question jelgavchik Linux - Networking 1 01-29-2005 02:51 AM
Dns Question ..... har5ha Linux - Networking 7 07-24-2004 03:34 PM
DNS question J_Szucs Linux - Software 4 10-31-2003 03:02 AM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 05:59 PM
dns question -- new to dns gadhiraju Linux - General 2 05-09-2001 07:44 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration