pairing resource with hostname