LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack 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
Guru
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: LMDE Gnome with Awesome WM + Kernel 3.3.0-1 amd64
Posts: 6,518
Blog Entries: 1

Rep: Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217
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
Guru
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: LMDE Gnome with Awesome WM + Kernel 3.3.0-1 amd64
Posts: 6,518
Blog Entries: 1

Rep: Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217
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
Guru
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: LMDE Gnome with Awesome WM + Kernel 3.3.0-1 amd64
Posts: 6,518
Blog Entries: 1

Rep: Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217
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
Guru
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: LMDE Gnome with Awesome WM + Kernel 3.3.0-1 amd64
Posts: 6,518
Blog Entries: 1

Rep: Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217
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


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat Cluster Manager - fresh install? service primary node? degenaro Linux - Software 1 07-14-2009 06:27 PM
mysqld node of mysql cluster system not connecting to management node coal-fire-ice Linux - Server 0 05-08-2008 07:44 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


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration