LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-03-2007, 03:42 AM   #1
nominruil
LQ Newbie
 
Registered: Mar 2005
Distribution: gentoo
Posts: 17

Rep: Reputation: 0
SSH will not connect to hostname, only IP address.


Quite simply, my problem is that I want to be able to type 'ssh <hostname>' instead of 'ssh <ipaddress>'

The problem is that ssh fails to resolve the hostname and thus only successfully connects by ip address.

I do NOT want to update the /etc/hosts file every single time I connect a computer or DHCP assigns a different address to a computer, that is not an option.

I have a linksys WRT54G v6 (so no DD-WRT ) and all the computers are connected to the same switch.

This is not specifically an SSH problem, ping <hostname> does not work either, so it has something to do with the way the hostname's are resolved and/or the communication between DHCP and DNS inside the linksys box.
 
Old 06-03-2007, 04:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
all that and it took you till the very end to even mention DNS... no idea what DNS is doing on the router, is it just a forwarder or do other leases get converted to DNS entries? may well be the case that if the DHCP request actually contains the hostname option the DHCP server will add the DNS data to it. outside of that, you may wish to move dns and dhcp to a different machine, maybe using something very small and compact like dnsmasq.
 
Old 06-03-2007, 01:26 PM   #3
nominruil
LQ Newbie
 
Registered: Mar 2005
Distribution: gentoo
Posts: 17

Original Poster
Rep: Reputation: 0
So to put it simply, the only way to make this possible is to create a DNS/DHCP server on a separate machine using masquerading?
 
  


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
How do I ssh using a hostname instead of using an IP address? gdlinuxer Linux - Wireless Networking 3 01-21-2007 02:26 AM
hostname-------->ip address bruse Linux - Networking 2 04-18-2005 05:08 AM
how to use the hostname instead of ip address? tuxtamer Linux - Newbie 1 04-15-2005 07:29 AM
hostname to IP address bruse Linux - Networking 5 03-29-2005 11:21 PM
From IP address to hostname swmok Linux - Networking 1 08-22-2003 07:26 AM


All times are GMT -5. The time now is 04: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 Google+: linuxquestions
Open Source Consulting | Domain Registration