Giter VIP home page Giter VIP logo

Comments (9)

sreimers avatar sreimers commented on May 21, 2024

not easy to fix, because there seems no native way to get the dns server without java JNI.
see: c-ares/c-ares#148

from re.

Hmart avatar Hmart commented on May 21, 2024

I did some research and found this answer on SO https://stackoverflow.com/a/48973823

I've managed to get a native implementation to work by implementing the method that executes the getprop command.

from re.

alfredh avatar alfredh commented on May 21, 2024

hi @Hmart would you like to help to fix this issue? if you have some working code
perhaps you can submit a Pull Request ?

A workaround may be to statically configure a public DNS server (e.g. 8.8.8.8)
in the application.

Alfred

from re.

juha-h avatar juha-h commented on May 21, 2024

@Hmart, did your getprop method call a java function via JNI? Could you share your implementation?

from re.

juha-h avatar juha-h commented on May 21, 2024

Alfred, are you suggesting that in case of libbaresip.a, src/net.c, dns_srv_get() calls would be modified to use 8.8.8.8?

from re.

AlexanderplUs avatar AlexanderplUs commented on May 21, 2024

Is get_android_dns function really needed in library? As I can see in the code it is used only in dns_srv_get which is unused in library too. May be it is better to make external applications find this information themselves?

from re.

alfredh avatar alfredh commented on May 21, 2024

hi @juha-h

baresip can use the config option dns_server to add any custom nameservers.
I dont think we should hardcode any IP-address in the source code.

comment to @AlexanderplUs :

the function dns_srv_get is unused in libre. The intention is that the application
can call it to get a list of nameservers from the OS. It is practical to have this function
available, but it is also limited to platforms that provide the needed APIs.

from re.

juha-h avatar juha-h commented on May 21, 2024

from re.

alfredh avatar alfredh commented on May 21, 2024

I dont think we will find a good solution for this, so I suggest we close the ticket.

the recommendation will then be for the application to fetch the nameservers.

from re.

Related Issues (20)

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.