1 |
On Tue, 2003-08-19 at 23:10, Kurt Lieber wrote: |
2 |
> On Tue, Aug 19, 2003 at 09:19:38PM +0100 or thereabouts, tigger@g.o wrote: |
3 |
> > So, does anyone have any ideas how a machine could find out where a the |
4 |
> > gold server is on its network when it boots? |
5 |
> |
6 |
> One idea that came up on the irc channel was using zeroconf (aka Apple |
7 |
> Rendezvous). Does anyone here have any experience w/ zeroconf? |
8 |
> |
9 |
> --kurt |
10 |
|
11 |
|
12 |
The rendevous that i've been working with has mainly been using apples |
13 |
propriatry code, but I spent a few minutes working on this tonight, |
14 |
using the MDNSD code, available from [ http://dotlocal.org/mdnsd/ ] |
15 |
|
16 |
After compiling this with the Instructions from the makefile, you can |
17 |
advertise a machine with Rendevous by using the below command. |
18 |
|
19 |
./mhttp 'Gentoo Server Project - Gold Server' 'www.subverted.net' 80 |
20 |
'/index.html' |
21 |
|
22 |
Replacing www.subverted.net with the IP (so that unconfigured DNS clients |
23 |
can still resolve them) of the gold server. |
24 |
|
25 |
This will then show up in rendevous/zeroconf like the screenshot below. |
26 |
(sorry its pdf, my apologies in advance). |
27 |
|
28 |
PTR _http._tcp.local. for 68 seconds to Gentoo Server Project - Gold |
29 |
Server._http._tcp.local. |
30 |
|
31 |
You can then query this information by issuing the command |
32 |
|
33 |
./mquery 12 _http._tcp.local. |
34 |
|
35 |
which will brign out all the http advertised daemons. |
36 |
|
37 |
It is important to note that although there are other implementations |
38 |
available, I would reccomend against using them, because of licencing |
39 |
issues. |
40 |
|
41 |
Although this only works for port 80 (www), im sure one of our more |
42 |
talented C coders could whip this up for a GSP implementation. |
43 |
|
44 |
|
45 |
Wade Mealing |