Ho to capture the domain name

yes. look at the request object.

-faisal