GithubHelp home page GithubHelp logo

relaycorp / doh-jvm Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 1.16 MB

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

Kotlin 100.00%
android dns-over-https doh java jvm kotlin

doh-jvm's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar gnarea avatar jan-tennert avatar relaybot-admin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

doh-jvm's Issues

how to connect DoHClient.kt to my WebViewClient main activity

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

DoH not compatible with ktor 2.0

Describe the bug

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

An API to tell if a query was DNSSEC verified or not

Describe the problem

I would like to know if a DNS result was DNSSEC verified.

Describe the solution you'd like

I'd like a property on the Answer or similar that tells me if it was DNSSEC verified.

Describe alternatives you've considered

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"

[Help Wanted] How to do a HttpRequest with DoH

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.