FW: [CLUE-Tech] DHCP and DNS

Joe Daily jdaily at mines.edu
Fri May 23 18:47:11 MDT 2003


You have a couple of ways of doing this.

First, to find the ips of your machines. You have two options that I see, 

	the first one is to ping the broadcast and grep the result for the
machine name. (There are some options in ping to have it return the
machine name). 
	
	Or set up a couple of bash scripts to have the ips emailed to you
can 	then another script to have it clear all but the latest emails. (I
do 	it this way but the scripts are built for various windows and Linux
boxes)

	Of course you can always find the dhcp server and replace it with a
Linux box and then in the dhcp.conf you can have the server dish out 	the
same ip to the lab boxes based on its mac address)

As of finding the server my I suggest a bash script that looks for your
server using samba, that should be contained in your class C network and as
long as you know the machine name you can do it.

Feel free to im me anytime if you need help setting that up.

Joe daily
+---------------------------+
| Email:                    |
| jdaily at mines.edu          |
|                           |
| Or Reach me on an IM      |
|                           |
| AIM & Yahoo: qnetjoe      |
| ICQ: 297495442            |
| MSN: dailyjoe at hotmail.com |
+---------------------------+


-----Original Message-----
From: clue-tech-admin at clue.denver.co.us
[mailto:clue-tech-admin at clue.denver.co.us] On Behalf Of Roger Frank
Sent: Thursday, May 22, 2003 10:38 PM
To: clue-tech at clue.denver.co.us
Subject: [CLUE-Tech] DHCP and DNS

For some time I've kept my Linux lab at school under the radar beam of
the district IT people.  We now have new district IT people, and they are
happy for me to use Linux as long as it is the version that they are
going to be using.  That's good news, though I must say goodbye to
Libranet 2.8, which is a wonderful distribution.  At least I don't need
to be in stealth mode.

But here's the question.  I now have to give up my fixed IP addresses.
I'll use DHCP, and that works fine.  Some machine at the school is
giving out addresses, and that's not a Linux machine.  But I need to
be able to get to each machine from the Linux server.  So how do
I lookup the IP address of a machine that has gotten it through DHCP?
I know the (fixed) address of the DNS server (192.168.1.3) but that
doesn't seem to have local addresses. 

To make this a little more complicated, I want each student machine
to NFS mount a directory on the Linux server.  If that server reboots
and gets a new IP address, then the /etc/fstab entry that would have
been hardcoded to the (formerly fixed) IP address of the NFS server
is not going to work.  And if I refer to it by name, it won't be
found through DNS, at least not through the 192.168.1.3 district-wide
DNS server.

Any suggestions?  Thanks.

---
Roger Frank
_______________________________________________
CLUE-Tech mailing list
CLUE-Tech at clue.denver.co.us
http://clue.denver.co.us/mailman/listinfo/clue-tech




More information about the clue-tech mailing list