LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-20-2009, 02:03 PM   #1
ace410
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
node name or service name not known


i'm trying to ssh to a remote host using dns name instead of ip address - i don't know what the ip address is but i do have the dns name - i ssh all the time successfully using username@ip address - does this mean ssh is set up to only connect by ip address and there's nothing i can do about it or is there some way to configure ssh to enable using the dns name?
 
Old 11-20-2009, 02:13 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Are you sure that the domain name gets resolved correctly? If you do
Code:
ping domainname
do you get an answer? Is this inside your own LAN or through internet?

Kind regards,

Eric
 
Old 11-20-2009, 02:30 PM   #3
ace410
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
i'm unable to ping the host get unknown host
 
Old 11-20-2009, 02:41 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
And is this server in your LAN or outside of it? Are you connecting over the internet?

Kind regards,

Eric
 
Old 11-20-2009, 02:45 PM   #5
ace410
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
not connecting over the internet this is a server inside our network
 
Old 11-20-2009, 02:49 PM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
And are you able to ping to other servers in your network, that is by using their hostname? It looks to me that the server you are trying to connect to is not being resolved correctly. Do you have another workstation or server from where you can try to ping in order to find the IP address of that particular server?

Kind regards,

Eric
 
Old 11-20-2009, 02:55 PM   #7
ace410
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
i cannot ping other servers on the network either but i can ping other servers if i ping using the ip address - for example i try to ping srvlinux on our network: $ ping 17.36.24.36 i get a 17.36.24.36 is alive reply but $ ping srvlinux.domain i get unknown host
 
Old 11-20-2009, 02:58 PM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Ok, this look like you just need to get your DNS server set in order to query by hostname. Do you know what the IP address of the DNS server in your network is? And what distro are you using?

Can you post the output of:
Code:
ifconfig -a
assuming you are ssh-ing from a Linux computer.

Kind regards,

Eric
 
  


Reply



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
mysqld node of mysql cluster system not connecting to management node coal-fire-ice Linux - Server 1 07-27-2015 08:33 AM
Red Hat Cluster Manager - fresh install? service primary node? degenaro Linux - Software 1 07-14-2009 06:27 PM
How to make TCP server a daemon / service much like a dhcpd service? rajat Linux - Networking 1 05-22-2007 01:29 AM
JavaScript:: alert(node) shows null, but node != null taylor_venable Programming 1 05-01-2006 09:51 PM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 02:08 AM

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

All times are GMT -5. The time now is 12:15 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