Avahi is a free zero-configuration networking (zeroconf) implementation, including a system for multicast DNS/DNS-SD service discovery.
Thanks for the suggestion! I started a wiki page to keep track of package suggestions and have added Avahi there!
I'd like to second the request for Avahi. I'm using Termux with Unison to sync files from my MacBook to my phone. It would be awesome to be able to configure Unison to sync on hostname.local instead of an ever changing local IP address.
I went insane trying to find a solution including porting Avahi to Termux, making use of Android NDS, making use of jmDNS etc. I'm way out of my depth here. Sorry to be of no use here.
Is it maybe easier to cross compile the dns-sd tool for Android from here: http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-320.10.80/ ??
dns-sd is included in OSX and I can easily register a service with it. Avahi might be superior, but we could use dns-sd until somebody had time to port it.
Hi, I am reopening this issue. Package requests will now be labeled and tracked as an issue.
seconding this request, for me without avahi theres no point in running a linux env on an android phone since they're so elusive constantly changing its IP all the time.
further bumping this request. Avahi would be incredibly useful
bampu! this would be so very useful. please make it hapen :-)
Yeah, this would be very nice. Alternately issue #182 suggests just dns-sd alone. Either option would be really nice.
just adding that optware-ng packages an arm version of avahi that works pretty well on android, so technically it is possible to get avahi working under android
BTW Android 5 has zeroconf/mDNS https://developer.android.com/training/connect-devices-wirelessly/nsd.html
It looks like Avahi is currently available in Termux through Arch Linux PRoot. This script is designed to install Arch Linux in just a few keystrokes. Tapping this link https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh will transfer setupTermuxArch.sh to your device. Simply run bash ~/storage/downloads/setupTermuxArch.sh to install Arch Linux in Termux. To install use pacman -S avahi and this will install Avahi on device.

This would indeed be really useful, some machines in my lan keeps changing ips because I don't have an option in my router to bind specific ips to MAC addresses.
I don't have an option in my router to bind specific ips to MAC addresses.
@msdos Android support assigning of static ip to device (and non-android devices probably too).

@xeffyr thanks for the hint. I still think avahi is a nicer solution.
@sdrausty I successfully installed avahi on termuxarch anyway I cannot get it running:
[root15:09run]$ avahi-daemon
Failed to create runtime directory /run/avahi-daemon/.
[root15:09run]$ ls -la
total 16
drwxr-xr-x 4 root root 4096 Mar 14 14:46 .
drwx------ 19 root root 4096 Mar 14 15:08 ..
drwxr-xr-x 2 root root 4096 Mar 14 14:46 avahi-daemon
drwx------ 3 root root 4096 Mar 14 13:47 systemd
[root15:09run]$
I am looking for a mDNS solution also
@SDRausty
It looks like Avahi is currently available in Termux through Arch Linux PRoot. This script is designed to install Arch Linux in just a few keystrokes. To install use
pacman -S avahiand this will install Avahi on device.
This command downloads it (and the nessecary packages), but that doesn't mean that it works, right? The official arch linux way (according to the arch wiki) is to manage avahi with systemd. The proot environment has no systemd, however. If I run the daemon outside of systemd I get the following error:
$ avahi-daemon
Failed to create runtime directory /run/avahi-daemon/.
libnss-mdns would also be nice to have if you have to connect from an android client the other way around.
Android has native zeroconf since 5 IIRC.
El lun., 27 ene. 2020 19:41, eadmaster notifications@github.com escribió:
libnss-mdns would also be nice to have if you have to connect from an
android client the other way around.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/termux/termux-packages/issues/65?email_source=notifications&email_token=AAD4W4XSHOD3I2TFKELUQELQ736EDA5CNFSM4BVITXH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ76VPY#issuecomment-578808511,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD4W4RPCWKAGDMG7HTF3ITQ736EDANCNFSM4BVITXHQ
.
i've tried pinging my pc via the ".local" mDNS name and it is not working in Termux, in fact it seems only available in some apps, not @ system-level like in vanilla linux.
https://bugzilla.mozilla.org/show_bug.cgi?id=1011340
El jue., 30 ene. 2020 7:23, eadmaster notifications@github.com escribió:
i've tried pinging my pc via the ".local" mDNS name and it is not working
in Termux, in fact it seems only available in some apps
https://stackoverflow.com/questions/30449988/how-to-enable-mdns-support-in-android-browser-address-bar,
not @ system-level like in vanilla linux.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/termux/termux-packages/issues/65?email_source=notifications&email_token=AAD4W4QK2RHSH3LFGBJOOLTRAJB4FA5CNFSM4BVITXH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJRY4Q#issuecomment-580066418,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD4W4XVDYA2Z4TIRMAEHJLRAJB4FANCNFSM4BVITXHQ
.
Opened 6 years ago Updated 1 year ago
Assignee: lassey → nobody
I don't think it's going to be implemented.
It will be if you do it. (But as part of the new Firefox Focus/Fenix).
On Thu, Jan 30, 2020 at 10:13 AM Tristan Ross notifications@github.com
wrote:
Opened 6 years ago Updated 1 year ago
Assignee: lassey → nobody
I don't think it's going to be implemented.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/termux/termux-packages/issues/65?email_source=notifications&email_token=AAD4W4SGAHMLXSVVTZPCD6TRAJV2PA5CNFSM4BVITXH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJZ5PY#issuecomment-580099775,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD4W4VGSBIS35GDK7LOJJDRAJV2PANCNFSM4BVITXHQ
.
Most helpful comment
@sdrausty I successfully installed avahi on termuxarch anyway I cannot get it running: