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 11-22-2003, 04:30 PM   #1
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
ssh/DNS - what happened?


i can't remotely log in to my gentoo box using the name anymore ("gentoo" - imaginative, huh? ), but i can using the IP. i have no clue as to what might be the matter -- anyone have a guess?
 
Old 11-23-2003, 02:17 AM   #2
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
DnS.....

Make sure you have DNS resolution on your local box -

for *nix -
dig <target box name>

for winders -
nslookup <target box name>

Cheers


Bob
 
Old 11-23-2003, 09:55 AM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
here's what i get:
Code:
; <<>> DiG 9.2.2-P1 <<>> gentoo
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24776
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;gentoo.                                IN      A

;; AUTHORITY SECTION:
.                       10800   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2003112300 [etc.]
;; Query time: 63 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sun Nov 23 10:33:10 2003
;; MSG SIZE  rcvd: 99
then when i do ssh, i still get:

sero@slackware:~$ ssh -l jeff -p 435 gentoo
ssh: gentoo: Name or service not known


???

is the dig supposed to set something, or just give info, like a ping? i'm not seeing the usable info there, especially since i did a dig with a nonexistant name, and the output looked almost exactly the same.
 
Old 11-23-2003, 11:46 AM   #4
adamantium
LQ Newbie
 
Registered: Nov 2003
Posts: 12

Rep: Reputation: 0
dig is to supply you with dns records of <server>.
if your machine "gentoo" had a dns record dig would show the name of you server "gentoo" and then the ip address that it was bound to.
so since you probably won't be paying for registering your gentoo box I would suggest:
edit your /etc/hosts file on you slackware machine.
put and entry like so:
<ip address of gentoo> <tab> gentoo
then save the file and exit.
now try pinging gentoo. It should reply with success and show the ip address of your gentoo box.

Adamantium
 
Old 11-23-2003, 12:23 PM   #5
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
thanks, i'm starting to get it. and that worked, appreciate.
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
What ever happened to ..... ? t3gah General 2 03-02-2005 07:48 AM
Dynamic DNS for remote telnet ssh logins? nadsab Linux - Networking 10 03-27-2004 11:53 AM
SSH Hangs (not due to DNS problems!) diberri Linux - Software 4 07-22-2003 11:18 AM
Ok....what happened? Bigun Linux - General 5 09-23-2002 01:51 PM

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

All times are GMT -5. The time now is 03:43 PM.

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