I would like to capture the domain name of the network I am on.

How can I do this?