LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   use telnet to connect to a network board by name (https://www.linuxquestions.org/questions/linux-networking-3/use-telnet-to-connect-to-a-network-board-by-name-4175589320/)

knobby67 09-13-2016 02:49 AM

use telnet to connect to a network board by name
 
Hi All,
is there a way to connect to a local pc ( actually a data capture board ) via telnet using the "network name".
I can connect using "telnet 192.168.0.23 1974" the board is called IODataCapture on network. I've tried "telnet IODataCapture 1974" but this just reports an error
"telnet: could not resolve IODataCapture/1967: No address associated with hostname"

Is there some way I can use the name rather than the ip? Thanks

ferrari 09-13-2016 03:17 AM

Only if it is defined by a name server on the network or via an entry in /etc/hosts perhaps.

lazydog 09-13-2016 07:53 AM

Quote:

Originally Posted by knobby67 (Post 5604484)
"telnet: could not resolve IODataCapture/1967: No address associated with hostname"

This says it all. There is no DNS for this hostname. either add a DNS entry or edit your host file and add it there.

IsaacKuo 09-13-2016 10:14 AM

Quick little fix is to add this line to /etc/hosts

Code:

192.168.0.23 IODataCapture
But you'll have to manually add this to every computer you wish to do this with.

Bigger fix is to deal with figuring out what DNS server is being used (look at /etc/resolv.conf) and then configuring that DNS server to serve up this DNS lookup.

knobby67 09-14-2016 02:49 AM

Thanks All


All times are GMT -5. The time now is 11:18 PM.