[avahi] DHCP issues

Lennart Poettering lennart at poettering.net
Mon Sep 22 13:55:09 PDT 2008


On Thu, 18.09.08 18:02, David Lambert (dave at lambsys.com) wrote:

> Please excuse the possible duplicate post, but I live in the Houston area affected by Hurricane Ike and I am not sure if my original got through
> 
> I have written a simple daemon based on the core-publish-service.c 
> example. My question is what is the "correct" way to re-publish the 
> service when the interface address changes due to for instance a DHCP 
> client lease expiration? One obvious solution would be to restart the 
> daemon from the dhcpcd.sh when the IP address changes. But is there a 
> more elegant solution?

The Avahi core will notice and handle this anyway since it listens for
network configuration changes.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the avahi mailing list