Git Product home page Git Product logo

Comments (3)

sprak3000 avatar sprak3000 commented on June 2, 2024

@everykindofpeople

Looking at the plugin, you would need to edit the script as follows.

First, you need to define the list of DNS servers you want to use from Control D. Where you mention wanting to also use Cloudflare, look for this block in the script

# shellcheck disable=2034
cloudflare="1.1.1.1
            1.0.0.1"

and add your Control D IP addresses after it

# shellcheck disable=2034
cloudflare="1.1.1.1
            1.0.0.1"

# shellcheck disable=2034
controld="X.X.X.X
            Y.Y.Y.Y"

Where you just want these two, you want to change this line

enabled_dns_address=(cloudflare google level3 opendns norton default)

to be this

enabled_dns_address=(cloudflare controld default)

Once you have saved those changes, reload the plugin. Should see just Cloudflare and Control D servers as options.

from xbar-plugins.

everykindofpeople avatar everykindofpeople commented on June 2, 2024

Thanks for the quick reply! That worked great to edit the server list. And now the plugin displays the current dns settings in xbar. But it doesn't change to a different server when I click on it in xbar. I'm running Sonoma 14.3, in case that has anything to do with it.

from xbar-plugins.

saiqulhaq avatar saiqulhaq commented on June 2, 2024

I am not using this plugin anymore @everykindofpeople
FYI the DNS switcher utilizes networksetup command to change the DNS, you may read the documentation here https://www.unix.com/man-page/osx/8/networksetup/

networksetup -setdnsservers $network_service \$(echo \$dns_address)

I think you can try that it's still working fine with Sonoma or not by running the networksetup directly in your terminal, but try to close the Xbar app first.

This tutorial may helpful for you https://blog.kandji.io/managing-network-settings-on-macos-big-sur-and-mac-address-randomization-in-ios-14

from xbar-plugins.

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.