relaycorp / doh-jvm Goto Github PK
View Code? Open in Web Editor NEWBasic DNS-over-HTTPS library for the JVM
Home Page: https://central.sonatype.com/search?q=doh&namespace=tech.relaycorp
License: Apache License 2.0
Basic DNS-over-HTTPS library for the JVM
Home Page: https://central.sonatype.com/search?q=doh&namespace=tech.relaycorp
License: Apache License 2.0
I would like to know if a DNS result was DNSSEC verified.
I'd like a property on the Answer or similar that tells me if it was DNSSEC verified.
I know if the DNSSEC fails then a verifying resolver will just return an error, but I'm interested in telling the difference between "there was DNSSEC and it passed" and "there was no DNSSEC"
I think the title describes it very good. Ktor 2.0 changes how features (now plugins) work etc. and DoH doesn't like that currently
Honouring the TTL of the DNS record.
We'll have to submit a PR for Ktor to fix this: Ktor requires the User-Agent
request header to be set. It uses Ktor client
by default and the UserAgent
feature allows this header value to be overridden, but not disabled.
Follow the guidance in RFC 8467 for use of EDNS padding options to pad DoH queries to a few common lengths to protect against traffic analysis.
https://developers.google.com/speed/public-dns/docs/doh#privacy_best_practices
I'm struggling to do a HttpRequest using DnsOverHttps and can't find any proper documentation or example.
I want to scrape a website which may be only be accessable using DoH for some users.
Can you please give me an example how to do that?
Normally I use Jsoup but doing a "normal" request using ktor or whatever and parsing the html would be fine as well
this is my main activity code
package com.example.myapplication
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebResourceRequest
import android.webkit.WebResourceResponse
import android.webkit.WebSettings
import android.webkit.WebView
import android.webkit.WebViewClient
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import tech.relaycorp.doh.DoHClient
import java.io.ByteArrayInputStream
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val webView: WebView = findViewById(R.id.webView)
// Enable JavaScript
val webSettings: WebSettings = webView.settings
webSettings.javaScriptEnabled = true
webView.webViewClient = DoHClient()
// Load Google.com
webView.loadUrl("https://whoismydns.com")
}
}
i want all site using doh cloudflare
whoismydns.com is site to check dns so when i launch i can see if doh on my code is working or not
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.