Giter VIP home page Giter VIP logo

balenadns's Introduction

balenaDNS

Although you can set your own custom DNS servers on balenaCloud devices, it is only when flashing a device (or when you have physical access to said device). In many cases (including my own), this is too much trouble when you have a fleet of 50+ devices that would otherwise require physical access. Rather than having to touch each device inside your application, I offer to you a solution where you can: set custom DNS servers (for the HostOS, and subsequently all containers) on balena devices during runtime (after provisioning). All it takes is a quick clone of this repo, setting some environment variables, and you're good to go.

Installation

Clone this repository to your local workspace:

git clone https://github.com/willswire/balenaDNS.git

Add/merge the docker-compose.yml file and the networking folder to your multicontainer setup. If you aren't using a multicontainer setup, but would like to add this container, see Balena's documentation for more information.

This project can also run on its own if you would like to use it for testing purposes. After cloning, push it to your application of choice via the balena-cli:

balena push myApplication

Usage

After installation, you will need to set some environment variables at either the device level, or the entire application level. See Balena's documentation on communication outside the container.

Name Value
DNS_1 1.1.1.1 [the primary ip address of your preferred DNS server]
DNS_2 1.0.0.1 [the secondary ip address of your preferred DNS server]

screenshot

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please report any issues you come accross. I've tested this project on amd64 and arm architectures.

Resources

balenadns's People

Contributors

willswire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dfkiki

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.