add name of host

It is possible to add in a log file (and a view active connection) a name of host destination? (e.g. www.yahoo.com)