Discussion:
[distcc] discovering the distccd hosts on a DHCP LAN?
Timothee Besset
2005-05-03 23:33:28 UTC
Permalink
Lo all,

While most of the distcc hosts I use have a fixed IP, I have a number of
machines that live on the LAN and get their IPs assigned by dhcp. I'm
looking for a way to use those for distcc as well. I've seen the FAQ,
and mention of centralized manager / TeamBuilder thing, but I don't
really want to move away to a completely different solution.

What I'm thinking about is just have a cron script on machines that run
a distcc daemon so they leave their IP somewhere, and in turn on the
client machine I would maintain the hosts file updated ( probably with a
cron as well ). If anyone has something along those lines already ..
please let me know :)

TTimo
Donohue, Michael
2005-05-04 00:13:46 UTC
Permalink
Depending on the size of the network segment where these hosts are
located, you could use nmap to find all hosts listening on port 3632.

Something like:
nmap -p 3632 '10.1.2.*'

Michael

-----Original Message-----
From: distcc-bounces+mdonohue=***@lists.samba.org
[mailto:distcc-bounces+mdonohue=***@lists.samba.org] On Behalf Of
Timothee Besset
Sent: Tuesday, May 03, 2005 4:33 PM
To: ***@lists.samba.org
Subject: [distcc] discovering the distccd hosts on a DHCP LAN?

Lo all,

While most of the distcc hosts I use have a fixed IP, I have a number of
machines that live on the LAN and get their IPs assigned by dhcp. I'm
looking for a way to use those for distcc as well. I've seen the FAQ,
and mention of centralized manager / TeamBuilder thing, but I don't
really want to move away to a completely different solution.

What I'm thinking about is just have a cron script on machines that run
a distcc daemon so they leave their IP somewhere, and in turn on the
client machine I would maintain the hosts file updated ( probably with a
cron as well ). If anyone has something along those lines already ..
please let me know :)

TTimo

__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc
Jean Delvare
2005-05-04 10:25:39 UTC
Permalink
Hi Timothee,
Post by Timothee Besset
While most of the distcc hosts I use have a fixed IP, I have a number of
machines that live on the LAN and get their IPs assigned by dhcp. I'm
looking for a way to use those for distcc as well. I've seen the FAQ,
and mention of centralized manager / TeamBuilder thing, but I don't
really want to move away to a completely different solution.
Why don't you simply configure your DHCP server to always assign the
same IPs to these few machines? The key feature of DHCP is that the
hosts configuration is centralized on the server, the fact that the IPs
are attributed in a dynamic way is not mandatory. You can attach IPs to
MAC Ethernet addresses "permanently".

In general using machines with dynamic addresses as servers don't sound
like a good idea to me.

Another possibility would be to access these machines by their name
rather than IP. This moves the difficulty from the clients to the DNS.
Loading...