network: use variables instead of hardcoded hostname/domain vaues