LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2016, 02:49 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
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
 
Old 09-13-2016, 03:17 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Only if it is defined by a name server on the network or via an entry in /etc/hosts perhaps.
 
Old 09-13-2016, 07:53 AM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by knobby67 View Post
"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.
 
Old 09-13-2016, 10:14 AM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
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.
 
Old 09-14-2016, 02:49 AM   #5
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
Thanks All
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to connect to network printer can't even telnet it fahadmanzoor Linux - Networking 3 07-11-2011 12:19 AM
fails to access embedded board using telnet sjremya Linux - Kernel 3 12-01-2010 12:00 AM
Connect to telnet guif Linux - Newbie 2 03-24-2010 05:28 AM
Unable to/from telnet to.from my Target board Indhu Durai Linux - Kernel 2 05-15-2006 12:47 AM
Telnet and BBS (Bulletin Board Sytem) Ritz Linux - Software 0 06-04-2004 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:23 AM.

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