Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM Abilita DNS over HTTPS per il protocollo IPv4
- netsh dns add dnsserver 1.1.1.1
- netsh dns set global dhcpdns=enable
- REM Abilita DNS over HTTPS per il protocollo IPv6
- netsh dns add dnsserver 2606:4700:4700::1111
- netsh dns set global ip6dhcpdns=enable
- REM Visualizza le impostazioni DNS attuali
- netsh dns show global
- @echo ## imposta dns ip4 e ip6
- REM Configurazione DNS per IPv4
- REM Aggiungi server DNS per IPv4
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "NameServer" /t REG_SZ /d "1.1.1.1,8.8.8.8" /f
- REM Aggiungi ulteriore configurazione IPv4
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "DNSServerSearchOrder" /t REG_MULTI_SZ /d "1.1.1.1\0 8.8.8.8\0" /f
- REM Configurazione DNS per IPv6
- REM Aggiungi server DNS per IPv6
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v "NameServer" /t REG_SZ /d "2606:4700:4700::1111,2001:4860:4860::8888" /f
- REM Aggiungi ulteriore configurazione IPv6
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v "DNSServerSearchOrder" /t REG_MULTI_SZ /d "2606:4700:4700::1111\0 2001:4860:4860::8888\0" /f
- REM Conferma l'aggiunta delle chiavi
- echo Le chiavi di registro sono state modificate con successo.
- pause
- echo #############################################
- echo #############################################
- echo #############################################
- @echo off
- REM Abilitazione DNS over HTTPS per tutte le interfacce IPv4
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "EnableAutoDoh" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "DnsOverHttpsUseHttps" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "DnsOverHttpsEnabled" /t REG_DWORD /d 1 /f
- REM Aggiungi server DNS DoH per IPv4 a livello globale
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "NameServer" /t REG_SZ /d "1.1.1.1,8.8.8.8" /f
- REM Abilitazione DNS over HTTPS per tutte le interfacce IPv6
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v "EnableAutoDoh" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v "DnsOverHttpsUseHttps" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v "DnsOverHttpsEnabled" /t REG_DWORD /d 1 /f
- REM Aggiungi server DNS DoH per IPv6 a livello globale
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v "NameServer" /t REG_SZ /d "2606:4700:4700::1111,2001:4860:4860::8888" /f
- REM Impostazione DNS per interfacce specifiche
- REM Sostituisci {GUID} con l'identificatore della tua interfaccia di rete
- set GUID={GUID}
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%GUID%" /v "EnableAutoDoh" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%GUID%" /v "DnsOverHttpsUseHttps" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%GUID%" /v "DnsOverHttpsEnabled" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%GUID%" /v "NameServer" /t REG_SZ /d "1.1.1.1,8.8.8.8" /f
- REM Stesso per IPv6
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\%GUID%" /v "EnableAutoDoh" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\%GUID%" /v "DnsOverHttpsUseHttps" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\%GUID%" /v "DnsOverHttpsEnabled" /t REG_DWORD /d 1 /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\%GUID%" /v "NameServer" /t REG_SZ /d "2606:4700:4700::1111,2001:4860:4860::8888" /f
- REM Conferma l'aggiunta delle chiavi
- echo Le chiavi di registro per DNS over HTTPS sono state modificate con successo.
- pause
Advertisement
Add Comment
Please, Sign In to add comment