1

I have a server (with a single IP address) targeted by multiple DNS records – for example ftp1.adomain.com, ftp69.filetime.com, and ftp420.sendthefiles.com. I'm curious if it's possible to log the hostname (not IP address) that the user targeted in their connection.

Effectively, I want to identify whether a user connected using ftp1.adomain.com vs using ftp420.sendthefiles.com.

I looked through the ProFTPD docs and I don't think I found what I want, but I thought I'd see if somebody has some additional insight.

1 Answers1

3

ProFTPD supports HOST command. If the client does too, it will send it. And if you log the commands on the server, ProFTPD will log it along.

But not many clients do send the command.

See also my answer to
Do the SSH or FTP protocols tell the server to which domain I am trying to connect?