This doesn't work reliably as the office DNS doesn't always set domain correctly.
Use default config filename and add it to private repo.