# Advertising container hostname using avahi-daemon in ResinOS v2

**URL:** <https://forums.balena.io/t/advertising-container-hostname-using-avahi-daemon-in-resinos-v2/728>\
**Category:** Product support\
**Created:** [April 5, 2017, 7:05am UTC](https://forums.balena.io/t/advertising-container-hostname-using-avahi-daemon-in-resinos-v2/728 "2017-04-05T07:05:35Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![bakavic](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/bakavic/32/66_2.png) [@bakavic](https://forums.balena.io/u/bakavic)\
**Post date:** [May 2, 2017, 12:24pm UTC](https://forums.balena.io/t/advertising-container-hostname-using-avahi-daemon-in-resinos-v2/728/17 "2017-05-02T12:24:35Z")

</div>

On a related note, since we can’t run our own instance of avahi-daemon anymore, is there any easy way to advertise new services via avahi?

I’ve been trying to create a new service via d-bus to the host avahi, but it seems like the whole `EntryGroup` interface of methods can’t be seen?

```bash
root@3aab805-3aab805:~# dbus-send \
> --system \
> --print-reply \
> --reply-timeout=2000 \
> --type=method_call \
> --dest=org.freedesktop.Avahi \
> / \
> org.freedesktop.Avahi.Server.EntryGroupNew
method return sender=:1.2 -> dest=:1.4 reply_serial=2
   object path "/Client0/EntryGroup1"

root@3aab805-3aab805:~# DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket \
> dbus-send \
> --system \
> --print-reply \
> --reply-timeout=2000 \
> --type=method_call \
> --dest=org.freedesktop.Avahi \
> /Client0/EntryGroup1 \
> org.freedesktop.Avahi.EntryGroup.AddService \
> int32:-1 int32:-1 uint32:0 string:'HTTP Service' string:'_http._tcp' string:'' string:'' uint16:80 array:byte:""
Error org.freedesktop.DBus.Error.UnknownObject: Method "AddService" with signature "iiussssqay" on interface "org.freedesktop.Avahi.EntryGroup" doesn't exist

```

I thought it might just be me getting the method argument types wrong, but even when calling one of the methods with only output arguments shows up as `doesn't exist`.

```bash
root@3aab805-3aab805:~# DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket \
> dbus-send \
> --system \
> --print-reply \
> --reply-timeout=2000 \
> --type=method_call \
> --dest=org.freedesktop.Avahi \
> /Client0/EntryGroup1 \
> org.freedesktop.Avahi.EntryGroup.GetState
Error org.freedesktop.DBus.Error.UnknownObject: Method "GetState" with signature "" on interface "org.freedesktop.Avahi.EntryGroup" doesn't exist

```

Anybody have any luck with this?

---

_[View the full topic](https://forums.balena.io/t/advertising-container-hostname-using-avahi-daemon-in-resinos-v2/728)._
