Many ColdFusion tags take server names as attributes – for example, (directly or via the ColdFusion Administrator), , , , and . Every time ColdFusion processes a server name you are forcing a DNS lookup to occur – and while DNS information is cached, eliminating DNS lookups can save precious time. The solution? Specify the IP address of the server instead of the DNS name so that the DNS lookup does not need to occur. Of course, this means you’ll lose some of the benefits of DNS (if IP addresses change you’ll need to change your application, if you have multiple servers sharing DNS entries you’ll not be able to use them all, etc) – so this might not work for all applications and all servers. But taking these restrictions into account, this change could improve performance. (Applies to: ColdFusion All)

Leave a Reply