Solved Is there anyway to block some domain (dns) with Windows?


rezpower

Member
Local time
10:16 AM
Posts
72
OS
Windows 11 PRO
Let me explain what I have in mind...I want to be able to block a device on my home network from accessing some domains.
The idea is to enable Hotspot wifi connection on my windows 11 and connect to it with my device, instead of having the device
directly connected to my router. Then find a way to block the domains I want on my windows. So that the device connected to
my hotspot will not be able to connect to those domains.

Do you think that this is possible to do?!
Mostly what I was able to find on the subject was to us pi-hole with a raspberry pi which I don't have. I would really prefer getting
this done with my windows PC if possible.
 

My Computer

System One

  • OS
    Windows 11 PRO
    Computer type
    Laptop
    Manufacturer/Model
    Hp Elitebook 8770w
    CPU
    Intel Core i7-3630QM 2.40GHz
    Memory
    8.00GB
    Graphics Card(s)
    NVIDIA Quadro K3000M
    Sound Card
    Steinberg UR44
    Hard Drives
    Samsung SSD 840 EVO 500GB
    Browser
    Firefox
    Antivirus
    Windows Defender + Malwarebytes

glasskuter

Well-known member
Pro User
VIP
Local time
3:16 AM
Posts
2,273
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

TairikuOkami

Brony
Power User
VIP
Local time
10:16 AM
Posts
471
OS
Windows 11 Home
You can try NextDNS just setup DNS as DOH to be able to use a custom setup. Change dohtemplate accordingly.
Code:
reg add "HKLM\System\CurrentControlSet\Services\Dnscache\Parameters" /v "EnableAutoDoh" /t REG_DWORD /d "2" /f
netsh dns add encryption server=45.90.28.91 dohtemplate=https://dns.nextdns.io/userID/devicenane autoupgrade=yes udpfallback=no
netsh dns add encryption server=45.90.30.91 dohtemplate=https://dns.nextdns.io/userID/devicename autoupgrade=yes udpfallback=no
You can use the extension to add multiple domains at once.
 

Attachments

  • capture_05182022_080747.jpg
    capture_05182022_080747.jpg
    79 KB · Views: 3
Last edited:

My Computer

System One

  • OS
    Windows 11 Home
    CPU
    AMD Ryzen 5 3600 (07/19)
    Motherboard
    MSI B450 TOMAHAWK 7C02v1E (07/19)
    Memory
    4x 8GB ADATA XPG GAMMIX D10 DDR4 3200MHz CL16
    Graphics Card(s)
    MSI Radeon RX 580 ARMOR 8G OC (08/19)
    Sound Card
    Creative Sound Blaster Z (11/16)
    Monitor(s) Displays
    24" AOC G2460VQ6 (01/19)
    Screen Resolution
    1920×1080@75Hz + FreeSync (DisplayPort)
    Hard Drives
    ADATA XPG GAMMIX S11 Pro SSD 512GB (07/19)
    PSU
    Seasonic M12II-520 80 Plus Bronze (11/16)
    Case
    Lian Li PC-7NB + 3x Noctua NF-S12A FLX@700rpm (11/16)
    Cooling
    CPU Cooler Noctua NH-U12S@700rpm
    Keyboard
    HP Wired Desktop 320K Keyboard (04/22)
    Mouse
    HP Wireless Silent 280M Mouse (05/21)
    Internet Speed
    400/40 Mbps via RouterOS (05/21) + TCP Optimizer
    Browser
    Microsoft Edge
    Antivirus
    None
    Other Info
    Headphones: Sennheiser RS170 (09/10)

rezpower

Member
Thread Starter
Local time
10:16 AM
Posts
72
OS
Windows 11 PRO
You can try NextDNS just setup DNS as DOH to be able to use a custom setup. Change dohtemplate accordingly.
Code:
reg add "HKLM\System\CurrentControlSet\Services\Dnscache\Parameters" /v "EnableAutoDoh" /t REG_DWORD /d "2" /f
netsh dns add encryption server=45.90.28.91 dohtemplate=https://dns.nextdns.io/userID/devicenane autoupgrade=yes udpfallback=no
netsh dns add encryption server=45.90.30.91 dohtemplate=https://dns.nextdns.io/userID/devicename autoupgrade=yes udpfallback=no
You can use the extension to add multiple domains at once.
After trying many different things this is the best solution which I finally adapted and works great. Thanks for the precious help :)
 

My Computer

System One

  • OS
    Windows 11 PRO
    Computer type
    Laptop
    Manufacturer/Model
    Hp Elitebook 8770w
    CPU
    Intel Core i7-3630QM 2.40GHz
    Memory
    8.00GB
    Graphics Card(s)
    NVIDIA Quadro K3000M
    Sound Card
    Steinberg UR44
    Hard Drives
    Samsung SSD 840 EVO 500GB
    Browser
    Firefox
    Antivirus
    Windows Defender + Malwarebytes

glasskuter

Well-known member
Pro User
VIP
Local time
3:16 AM
Posts
2,273
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Top Bottom