On Wednesday 27 August 2003 04:29 am, Mike Williams wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wednesday 27 August 2003 09:15, Owen Ford wrote:
> > If he is using dhcp he very well might have to change those hosts
> > listings very frequently.  I don't have a good solution either ;)
>
> I do :)
> DHCP + djbdns + http://www.thismetalsky.org/magic/projects/dhcp_dns.html
>
> It's all fairly straight forward once you've got your head round djb. I can
> provide more assistance when I've woken up a little (I really shouldn't
> keep my laptop next to my bed...)
>
> - --
> Mike Williams
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
>
> iD8DBQE/TGvSInuLMrk7bIwRAqJPAJ9bRFoTREbAoXApT4kUPXYRm4GiqQCeKxlk
> dpvetT4azAfkF1IOMy1qhs4=
> =RTEy
> -----END PGP SIGNATURE-----

Here's another suggestion: Check into "alias" ip numbers. I'm sorry I don't 
remember the exact syntax under Gentoo (I'm at a RedHat computer right now), 
but it involves the /etc/init.d/net.eth0 file (or net.eth1, net.eth2, 
whatever your card is).

Briefly, what you do is tell Gentoo that when it activates this network card, 
it should get its ip via DHCP (I imagine you already have this set up). But 
you also designate an alias, which can be any ip you choose, although 
obviously you should probably make it an ip unlikely to be given out by your 
DHCP server). For a concrete example, suppose your DHCP server gives your 
laptop, names "marvin," an  address somewhere the 192.168.0.100 to 
192.168.0.199 range. Then you would designate an alias ip of 192.168.0.240 in 
marvin's /etc/init.d/net.eth0,  and put this line in the /etc/hosts files of 
your other computers:

192.168.0.240   marvin

Then, no matter what ip your DHCP server happens to hand out, your other 
computers can find marvin.

I hope this helps.

Tony

--
[EMAIL PROTECTED] mailing list

Reply via email to