Is it possible to set specific network settings depending on the WiFi I am connected to with Windows?












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.










share|improve this question





























    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.










    share|improve this question



























      2












      2








      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.










      share|improve this question
















      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.







      networking windows-10 dns






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 29 '18 at 20:59







      rabejens

















      asked Dec 29 '18 at 20:23









      rabejensrabejens

      1163




      1163






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Specify your default domain and DNS on the DHCP server. Then push it to all dhcp clients. Then set a static IP to the synology.






          share|improve this answer
























          • 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
            Dec 29 '18 at 22:32











          • Yeah definitely offload the duty then.

            – Grifulkin
            Dec 30 '18 at 1:49













          • 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
            Dec 31 '18 at 9:44











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388819%2fis-it-possible-to-set-specific-network-settings-depending-on-the-wifi-i-am-conne%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Specify your default domain and DNS on the DHCP server. Then push it to all dhcp clients. Then set a static IP to the synology.






          share|improve this answer
























          • 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
            Dec 29 '18 at 22:32











          • Yeah definitely offload the duty then.

            – Grifulkin
            Dec 30 '18 at 1:49













          • 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
            Dec 31 '18 at 9:44
















          2














          Specify your default domain and DNS on the DHCP server. Then push it to all dhcp clients. Then set a static IP to the synology.






          share|improve this answer
























          • 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
            Dec 29 '18 at 22:32











          • Yeah definitely offload the duty then.

            – Grifulkin
            Dec 30 '18 at 1:49













          • 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
            Dec 31 '18 at 9:44














          2












          2








          2







          Specify your default domain and DNS on the DHCP server. Then push it to all dhcp clients. Then set a static IP to the synology.






          share|improve this answer













          Specify your default domain and DNS on the DHCP server. Then push it to all dhcp clients. Then set a static IP to the synology.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 29 '18 at 21:59









          GrifulkinGrifulkin

          212




          212













          • 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
            Dec 29 '18 at 22:32











          • Yeah definitely offload the duty then.

            – Grifulkin
            Dec 30 '18 at 1:49













          • 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
            Dec 31 '18 at 9:44



















          • 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
            Dec 29 '18 at 22:32











          • Yeah definitely offload the duty then.

            – Grifulkin
            Dec 30 '18 at 1:49













          • 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
            Dec 31 '18 at 9:44

















          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
          Dec 29 '18 at 22:32





          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
          Dec 29 '18 at 22:32













          Yeah definitely offload the duty then.

          – Grifulkin
          Dec 30 '18 at 1:49







          Yeah definitely offload the duty then.

          – Grifulkin
          Dec 30 '18 at 1:49















          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
          Dec 31 '18 at 9:44





          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
          Dec 31 '18 at 9:44


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388819%2fis-it-possible-to-set-specific-network-settings-depending-on-the-wifi-i-am-conne%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          Brian Clough

          Cáceres