Coder Social home page Coder Social logo

mdns-alias's Introduction

Publish mDNS-SD Aliases

This is a small C program that publishes mDNS CNAMEs using Avahi. It runs as a UNIX daemon, ensuring the CNAME records are published as long as the daemon runs.

Currently the program takes its CNAME aliases on the command line:

mdns-alias foo.local bar.local

At least one name, including .local, must be given on the command line.

Dependencies

At run time: a running avahi-daemon

Build time: avahi client library and header files, and to detect it, the pkg-config tool. You also need a C compiler and make.

Ubuntu, Mint, or other Debian based Linux distributions:

sudo apt install libavahi-client-dev pkg-config

Building

This project is built using configure and make. The configure script generates the Makefile for your host system, or your embedded target system. Usually setting --host=toolchain-prefix- is all you need for the configure script to find your cross compiler.

./configure
make

By default the configure script prepares for installing in /usr/local, if you want to change that, please see ./configure --help. To install type:

sudo make install

Some systems no longer have sudo, alternatives include su to root, or tools like doas.

Note: if you do not like pre-packaged, and properly versioned, release tarballs, you need to have GNU autoconf and automake installed to be able run the autogen.sh script. It creates the configure script and Makefile template, which are included in the portable release tarballs.

Motivation

For some reason the de facto standard mDNS-SD daemon in Linux, Avahi, does not support CNAME (DNS alias) records in the configuration files or using any of its tools. This has been covered in many repos, but none did it better than George Hawkins, I believe.

mdns-alias's People

Contributors

troglobit avatar

Stargazers

 avatar  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.