*** From dhcp-client -- To unsubscribe, see the end of this message. ***

Wee-Meng,

> Hello,
> 
> I'm looking for a dhcp client program that just sends a broadcast
> and queries for all available DHCP servers.  The results are then
> output to stdout.  
> 
> We're running DHCP at our site and from time to time some user
> turns on the DHCP server option in a WinNT server without
> configuring it properly.  This causes the DHCP service to fail in
> the entire subnet.
> 
> I'm thinking of running this program periodically every half hour
> so that should an bogus DHCP server starts up, I will be
> notified.  Before the users are affected.
> 
> I can dabble a little in C but I'm not familiar with programming.
> I did have a look at the source for dhclient.c but I found it too
> complicating.
> 
> Thanks in advance.  In the mean time, still trying to figure out
> what's happenning in dhclient.c
> 
> weemeng

This may be a bit overkill for what you are looking for, but you can
try nmap (http://www.insecure.org/nmap/index.html).  It is a port scanner,
and you can do something like this:

        % nmap -sU -p 67 a.b.c.1-254

Look for anything that has port 67 open, and you'll find those with DHCP
servers.  I found a *lot* of NT machines misconfigured (read: with DHCP
server and/or relay and/or RAS enabled) when I upgraded to 2.0b1pl18.  It
helped tremendously.

Of course, it has other uses besides this.  I consider it a very
valuable tool.

Don
---
Don Badrak <[EMAIL PROTECTED]>              301.457.8263 work
Telecommunications Office                    301.457.4438 fax
U.S. Bureau of the Census
Suitland MD, USA



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED]   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------

Reply via email to