Name

log_fqdn

Synopsis

This directive controls whether or not Squid places client IP addresses or hostnames in the log files. By default Squid writes the IP address. If you enable this feature, Squid queries the DNS for client hostnames or fully qualified domain names (FQDN). These address-to-name lookups sometimes take a long time. Squid never postpones logging to wait for an answer. If the FQDN isn’t available when Squid is ready to write the log entry, it uses the IP address.

Syntax

log_fqdn on|off

Default

log_fqdn off

Example

log_fqdn on

Related

cache_access_log, useragent_log, referer_log, fqdncache_size, client_netmask

Get Squid: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.