LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   DNS Question (https://www.linuxquestions.org/questions/linux-general-1/dns-question-225645/)

hansi umayangan 09-02-2004 07:04 AM

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 192.168.55.74: bytes=32 e<10ms TTL=128

ppuru 09-02-2004 07:09 AM

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.

egag 09-02-2004 07:13 AM

into a console type : ping computername

my output:

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

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

egag

hw-tph 09-02-2004 08:33 AM

...or to find all IP's associated with the hostname, use the host utility...
Code:

hw@royne:~$ host xs4all.nl
xs4all.nl has address 194.109.21.2
xs4all.nl has address 194.109.21.3



All times are GMT -5. The time now is 05:06 PM.