Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a computer in the network with computer name: XP-201112453 Without knowing the IP, how can I telnet to access this computer?

I tried:

telnet XP-201112453

but terminal gives me "nodename nor servname provided, or not known" as if the syntax is wrong. I search over the name and only find telneting an IP address. Is it possible to telnet a computer just by knowing the computer name alone?

[EDIT] Telnet from a Mac OS X to access a Windows XP machine. Because IP changes regularly, I would want to find a way to access it by its username or computer name.

share|improve this question
    
check what nslookup give you. –  Hanan N. Dec 27 '11 at 11:40
1  
What is the OS? –  t1nt1n Dec 27 '11 at 18:15
    
From what OS to what OS? And what software is running on the computer you're trying to access? (Bonjour? NMB?) –  David Schwartz Dec 27 '11 at 18:49
    
telnet from Mac OS X terminal to access a Windows XP machine –  KMC Dec 28 '11 at 0:28
    
By defult the telnet service is disbaled in Win XP. Are we assuming that this is turned on? –  t1nt1n Dec 28 '11 at 7:54

2 Answers 2

You can telnet to another machine using its name, but the name should be resolvable.

If it is defined in your hosts file, the found IP mapping will be used.

If it is resolvable via DNS server, it should be OK also.

If it is a netbios name (it appears so), you need to have winbind package installed (I am assuming Linux OS here). Under Windows, resolving netbios names should not be an issue.

Under Linux OS, you can check the order (priority) of these lookup sources in the config file /etc/nsswitch.conf. Look for the line that starts with hosts:.

share|improve this answer

Can you ping the hostname and it then resolves an IP address? If it doesn't then the hostname is not resolving correctly in DNS. When pinging the hostname it should return an IP address which you can also use.

If it is a Windows machine you can then add an entry into you /System32/drivers/etc/hosts file and add the hostname XP-201112453 to the file with the IP address from your Ping command above.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.