Thanks, Chris - worked perfectly. Including log(req) and log(head) statements in the list function gave a wealth of information about the function's "head" and "req" arguments.
In particular, the name of the host being queried can be extracted from the "req" argument as req['headers']['Host']. Catherine
