LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-09-2007, 03:52 PM   #1
shail49
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
how to detect what hostname a client is using to connect to server


Is there a way to find out what hostname (not IP) clients are using to connect to a server? For example: client A is telnetting to Server B, using hostname C.domain.com. (B and C resolve to the same IP). Can we, on the server B find out that Client A used C.domain.com to connect?
 
Old 10-09-2007, 04:04 PM   #2
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
I'd try to capture traffic with Ethreal or 'tcpdump', and then look inside relevant packets for the name.
 
Old 10-10-2007, 07:15 AM   #3
shail49
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for the response. I already tried tcpdump, but it looks like the name resolution happens on the server side. For example, let's say the client uses C.domain.com to connect to server B.domain.com. tcpdump still prints the destination server name as B.domain.com not C.domain.com. Seems like the resolution is done on the server side with tcpdump. Are there any other specific fields I can take a look at?
 
Old 10-12-2007, 05:25 PM   #4
dumbsheep
Member
 
Registered: Jan 2005
Location: USA
Distribution: Red Hat, CentOS, Fedora, Suse
Posts: 54

Rep: Reputation: 15
try etherape
 
  


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
Unable to connect to server using hostname with telnet and browser Schlumpf42 Linux - Networking 7 07-12-2021 02:13 PM
Can't get NX client to connect to Nx Server camorri Linux - Server 1 11-20-2006 02:05 PM
can not connect to my pureftp server from Linux client, but i can from windows client bonito SUSE / openSUSE 5 03-16-2005 09:45 PM
Client wont connect to server odd Linux - Software 0 06-04-2004 04:49 PM
can't connect to linux server using X client netkepala Linux - Networking 7 01-06-2003 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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