GithubHelp home page GithubHelp logo

Comments (7)

bim9262 avatar bim9262 commented on June 30, 2024

There are several ways that dns can be setup, but starting off with reading /etc/resolv.conf is a good start. Some dns resolves like systemd-resolved will put an entry like nameserver 127.0.0.53 and then do the resolution itself, although you can query to see which nameservers systemd-resolved is using.

from i3status-rust.

MaxVerevkin avatar MaxVerevkin commented on June 30, 2024

Some dns resolves like systemd-resolved will put an entry like nameserver 127.0.0.53

NetworkManager also does that.

from i3status-rust.

jkauerl avatar jkauerl commented on June 30, 2024

Hi, is this a good first issue to start? Because if it is I would love to start working on it with only Rust!!

from i3status-rust.

bim9262 avatar bim9262 commented on June 30, 2024

Sure, we can start of just reading /etc/resolv.conf looking for nameserver entries. Later we can add in an option to pick if another resolver should be queried.

from i3status-rust.

jkauerl avatar jkauerl commented on June 30, 2024

Added a PR #2058 looking at nameserver entries in /etc/resolv.conf.

from i3status-rust.

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.