Trent 'Lathiat' Lloyd (トレント) ([info]lathiat) wrote,
@ 2006-02-11 23:20:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Current mood: accomplished
Current music:Pendulum - Fasten your seatbelt
Entry tags:avahi, zeroconf

Avahi now supports static host mappings!
Tonight, I spent a few hours implementing static host mappings for Avahi, which Ross Burton will be happy about.

Essentially this is a file (/etc/avahi/hosts) which contains a list of host->ip mappings, the main purpose of this is to advertise a hostname for a device that isn't avahi-enabled.

e.g. if I want to advertise the http service of my router, it isn't much use as theres no hostname to point it at, now I add

192.168.0.1 router.local

to my hosts file, and put

router.local

in the .service file, and done :)

It's now in svn, changeset 1133, will be in the next release.




(4 comments) - (Post a new comment)

WOOO
(Anonymous)
2006-02-11 04:30 pm UTC (link)
Yay! Rock on Trent.

(Reply to this) (Thread)

Re: WOOO
(Anonymous)
2006-02-11 04:31 pm UTC (link)
(that was Ross)

(Reply to this) (Parent)

I have probably missed something...
(Anonymous)
2006-03-15 02:04 pm UTC (link)
... what does this do that avahi-publish-service doesn't?

(Reply to this) (Thread)

Re: I have probably missed something...
[info]lathiat
2006-03-15 10:25 pm UTC (link)
It publishes a hostname, e.g. router.local - not a service.

Hostnames are generally published by the daemon running on the respective machine, but for example if you want to publish a service for a machien that isnt running mdns, there is no hostname for you to reference.

And this differs from avahi-publish-*hostname* in that its a static configuration of hosts that always exists when avahi is running, rather than a temporary published one.

(Reply to this) (Parent)


(4 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…