Coder Social home page Coder Social logo

rrthomas / avahi-aliases Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scott-ainsworth/avahi-aliases

1.0 2.0 0.0 33 KB

Announce multiple avahi host aliases across your local network. Supports Debian Buster and Ubuntu 18.04+

Shell 10.55% Python 69.17% Makefile 20.29%

avahi-aliases's Introduction

avahi-aliases

The Avahi System facilitates service discovery on local networks using the Multicast DNS/DNS-SD protocol suite.

The current implementation of Avahi (v0.8) does not yet support aliases (i.e., CNAME records). Avahi-alias, in its many variations, fills this gap.

This variation of avahi-alias provides:

  • Python 3 compatibility,
  • Avahi v0.8 compatibility,
  • Systemd compatibility, and
  • Full install and remove capability.

Prerequisites

For proper installation and execution of this variation of avahi-alias, the following are required:

  • Python 3. Python 3 is now the defacto version distributed with nearly all Linux distributions.

  • Avahi v0.8. Avahi v0.8, released Feb 18, 2020, includes Python 3 bindings. Its availability varies across Linux distributions. In particular, many long-term support releases (e.g., Ubuntu 20.04 LTS) still include Avahi v0.7. (Although in the case of Ubuntu 20.04 LTS, it appears the Avahi v0.8 packages available for Debian Bulleye can replace the v0.7 packages transparently. This has not been well tested!)

  • Systemd. The install and uninstall make targets work with Systemd. A rudimentary init system script is also include.

Installing and Removing

From the avahi-alias directory, run make install. This will install the scripts to /usr/local/bin, setup systemd services, and start the service. Installation and removal options include:

  • make install performs full installation (and reinstallation).
  • make install-binaries creates the /etc/avahi/aliases files and installes the scripts to /usr/local/bin.
  • make install-unit installs and starts the systemd service.
  • make remove performs a full removal.
  • make remove-binaries removes the scripts from /usr/local/bin.
  • make remove-unit stops and removes the systemd service.

Note: The install and remove make targets assume the current user has sudo rights and executes most steps using sudo.

Adding and removing aliases

Aliases are stored in /etc/avahi/aliases. Add and remove aliases by editing /etc/avahi/aliases directly. Althernatively, use the avahi-add-alias and avahi-remove-alias scripts. Examples:

  • sudo avahi-add-alias alias1.local adds alias1.local to /etc/avahi/aliases.
  • sudo avahi-remove-alias alias1.local removes alias1.local from /etc/avahi/aliases.

Acknowledgements

avahi-aliases's People

Contributors

airtonix avatar laurentlemercier avatar rcarmo avatar rrthomas avatar scott-ainsworth avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.