Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Dalee/avahi-cname-aliases
Add CNAME host aliases to local Avahi daemon
https://github.com/Dalee/avahi-cname-aliases
avahi avahi-aliases cname
Last synced: 14 days ago
JSON representation
Add CNAME host aliases to local Avahi daemon
- Host: GitHub
- URL: https://github.com/Dalee/avahi-cname-aliases
- Owner: Dalee
- License: unlicense
- Created: 2017-01-12T12:19:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-14T09:54:17.000Z (almost 8 years ago)
- Last Synced: 2024-02-14T21:41:05.484Z (9 months ago)
- Topics: avahi, avahi-aliases, cname
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Avahi Aliases (CNAME)
Add `CNAME` aliases to current Avahi host.
Dependencies:
* Python 2.7
* python-avahi, python-pip## Installation
```bash
# apt-get install -y python-avahi python-pip
# pip install --upgrade git+https://github.com/Dalee/avahi-cname-aliases.git
```## Systemd configuration
```
[Unit]
Description=Avahi Aliases stack
Requires=avahi-daemon.service
After=avahi-daemon.service[Service]
ExecStart=/usr/local/bin/avahi-cname-aliases[Install]
WantedBy=multi-user.target
``````bash
# systemctl daemon-reload
# systemctl enable avahi-aliases
# systemctl start avahi-aliases
```## Set aliases
```bash
# mkdir /etc/avahi/aliases.d
# echo "hello.local" > /etc/avahi/aliases.d/hello.txt
# systemctl restart avahi-aliases
```## Common pitfalls
Avahi allows 32 CNAME aliases per group.
In order to increase this value just tune `entries-per-entry-group-max`
value of `/etc/avahi/avahi-daemon.conf`.## License
Code is unlicensed. Do whatever you want with it. [Set Your Code Free](http://unlicense.org/).