Skip to content

matthimrod/avahi_aliass.service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

avahi_aliass.service

Simple conf.based avahi-alias service.

Prerequisites

This is for linux systems that use avahi-daemon. This script requires avahi-publish which is part of the avahi-utils package, which can be installed by running the following on Debian-based disros:

apt install avahi-utils

Setup

Copy the service file:

sudo cp [email protected] /etc/systemd/system

Change permissions and owner:

sudo chown root:root /etc/systemd/system/[email protected]
sudo chmod 644 /etc/systemd/system/[email protected]

Reload systemd to make the new service available:

sudo systemctl daemon-reload

Usage

Setting up and removing aliases is as simple as the following:

To add an MDNS CNAME Alias test.local:

systemctl enable --now [email protected]

To remove an alias:

systemctl disable [email protected]

About

Simple conf.based avahi-alias service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published