| 
					
				 | 
			
			
				@@ -11,6 +11,7 @@ import java.net.InetAddress 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const val PREF_DOH_CLOUDFLARE = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const val PREF_DOH_GOOGLE = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const val PREF_DOH_ADGUARD = 3 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 fun OkHttpClient.Builder.dohCloudflare() = dns( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     DnsOverHttps.Builder().client(build()) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -38,3 +39,16 @@ fun OkHttpClient.Builder.dohGoogle() = dns( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .build() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// AdGuard "Default" DNS works too but for the sake of making sure no site is blacklisted, i picked "Unfiltered" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+fun OkHttpClient.Builder.dohAdGuard() = dns( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    DnsOverHttps.Builder().client(build()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .url("https://dns-unfiltered.adguard.com/dns-query".toHttpUrl()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .bootstrapDnsHosts( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            InetAddress.getByName("94.140.14.140"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            InetAddress.getByName("94.140.14.141"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            InetAddress.getByName("2a10:50c0::1:ff"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            InetAddress.getByName("2a10:50c0::2:ff"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .build() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 |