Set-DynamicIPDoHServer

0.0.8



💎 Use a DNS over HTTPS server that doesn't have a stable IP address, on Windows 11 💎

This module will automatically identify the correct and active network adapter/interface and set the Secure DNS settings for it based on parameters supplied by user.
even if Hyper-V virtual switches (Internal, Private, External) are being used and the physical network adapte


💎 Use a DNS over HTTPS server that doesn't have a stable IP address, on Windows 11 💎

This module will automatically identify the correct and active network adapter/interface and set the Secure DNS settings for it based on parameters supplied by user.
even if Hyper-V virtual switches (Internal, Private, External) are being used and the physical network adapter is virtualized by Hyper-V virtual switch manager or
VPN's virtual network adapter is being used, all at the same time, the module will still find and enable DoH settings for the correct adapter.

You can create a self-hosted DoH server for free on Cloudflare or other providers, with custom domain name and dynamic IP addresses, which are hard or costly for ISPs, governments etc. to block

please refer to the Github repository of serverless-dns for more info: https://github.com/serverless-dns/serverless-dns


Example usage:

using module's alias: set-ddoh -DoHTemplate "https://example.com/" -DoHDomain "example.com"
using module's name:  set-dynamicIPDoHServer -DoHTemplate "https://example.com/" -DoHDomain "example.com"


✅ Created, targeted and tested on the latest version of Windows 11, on physical hardware and Virtual Machines

✅ Once you run this module for the first time and supply it with your DoH template and DoH domain, it will create a scheduled task that will run the module automatically
based on 2 distinct criteria; 1) as soon as Windows detects the current DNS servers are unreachable 2) every 2 hours in order to check for new IP changes for the dynamic DoH server.
You can fine-tune the interval in Task Scheduler GUI if you like. I haven't had any downtimes in my tests because the module runs miliseconds after Windows detects DNS servers are unreachable,
and even then, Windows still maintains the current active connections using the DNS cache. if your experience is different, please let me know on Github.

✅ the module and the scheduled task will use both IPv4s and IPv6s of the dynamic DoH server. the task will run whether or not any user is logged on.

✅ in order to make sure the module will be able to always acquire the IP addresses of the dynamic DoH server, even when the currently set IPv4s and IPv6s are outdated,
it will first attempt to use the DNS servers set on the system, if it fails to resolve the DoH domain, it will then use Cloudflare's 1.1.1.1 to resolve the IP addresses of the dynamic DoH server.
DNS queries made to Cloudflare's 1.1.1.1 will be un-encrypted and in plain text.

🛑 Make sure you have the latest stable PowerShell installed from Github before running this module: https://github.com/PowerShell/PowerShell/releases/latest
(store installed version currently not supported, but soon will be)

🏴 Disclaimer: I'm not the developer of Serverless-dns, however, since it's a great product and I personally use it, I decided to share this module so that Windows users can easily use it.


🔷 if you have any feedback about this module, please open a new issue or discussion on Github:
https://github.com/HotCakeX/Set-DynamicIPDoHServer
Show more

Minimum PowerShell version

7.3

The owner has unlisted this package. This could mean that the module is deprecated or shouldn't be used anymore.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Set-DynamicIPDoHServer -RequiredVersion 0.0.8

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Set-DynamicIPDoHServer -Version 0.0.8

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c)2023

Package Details

Author(s)

  • HotCakeX

Tags

Security DNS Windows HTTPS DynamicIP DoH

Cmdlets

Set-DynamicIPDoHServer

Functions

Set-DynamicIPDoHServer

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes


## Version
* 0.0.1 First release
* 0.0.2 added new parameter to ask user for DoH domain, also it can now choose the correct network adapter if both virtual VPN adapters and Hyper-V virtual switches are being used, all at the time time
* 0.0.3 added more details for the PowerShell Gallery's page
* 0.0.4 fixed some typos in PowerShell Gallery's description page
* 0.0.5 added an icon for the module
* 0.0.6 again fixed the PowerShell description text in PowerShell Gallery
* 0.0.7 modified the scheduled task trigger to run every 2 hours and added a 2nd trigger so the module will run the moment system detects DNS failure
* 0.0.8 fixed the typo in the line above, literally, improved PowerShell Gallery description, and set the scheduled task to end if it runs continiously longer than 1 minute

FileList

Version History

Version Downloads Last updated