2
I just got a new Surface Book today with Windows 10 Pro. I set up a domain on my Synology DiskStation (I am planning to get another Windows based machine later) and connected the device to it. This works fine so far. However, I need specific DNS settings for my home network, so I entered the IP addresses of my DiskStation into the adapter settings.
When I now connect to another network where my DiskStation isn't available, I have to manually set the DNS to autodetect and reset it to my DS when I'm back home.
macOS has "network locations" one can switch, and using an application like "ControlPlane" I can handle this automatically when I connect to the specific network.
Is anything like this possible on Windows 10, too?
Workaround: Using VPN
My DiskStation also has OpenVPN running, and thus two separate IP addresses (one that is routed to the outside for connecting from on the go).
So, I just added an OpenVPN config and used its first IP address as its "remote" address, and added:
dhcp-option DOMAIN mysynologydomain
dhcp-option DNS the.second.ip.address
When I'm now connected to my network via WiFi instead of wired, I just use OpenVPN to connect to that configuration and my DNS is set up correctly.
But I'd appreciate a less "roundabout" way.
While this would work, my DHCP server is a router from my ISP that doesn't provide me these settings. Maybe I should disable it and enable a DHCP Server on my DiskStation. – rabejens – 2018-12-29T22:32:45.127
Yeah definitely offload the duty then. – Grifulkin – 2018-12-30T01:49:48.207
You should really avoid using an ISP-provided device as anything other than a gateway, using your own router inside your network so you can control how it operates and don't expose anything through a device that is a high-value target, often with long-term security risk exposure and no ability to manage it to address issues. – shawn – 2018-12-31T09:44:49.437