Re: [SLUG] hostname resolution wackiness

From: Eben King (eben1@tampabay.rr.com)
Date: Sat Jul 10 2004 - 19:44:22 EDT


On Sat, 10 Jul 2004, Chad Perrin wrote:

> ##### Eben King wrote:
>
> > When I decided to use DHCP rather than static addresses, my router didn't
> > do fixed assignments, so I ran a DHCP server on one of the clients (a
> > Linux box, so it's almost always on). If it's the structure that's
> > getting you (as it got me with one of the format changes), I can give you
> > a working file.
>
> The network isn't solely mine to define the arhitecture, so I'm not sure this is
> really an option -- especially considering the only machine I could use for such
> a purpose is a 350MHz machine that's already acting as a file server and fax
> server, since it's the only Linux box that's currently connected to a UPS (and
> thus protected from having to be shut down during thunderstorms, despite my
> almost rabid advocation of ubiquitous UPS use). I'd appreciate any explication
> of your suggested solution, though, in case I can find a way to implement it,
> either now or at some point in the future.

It doesn't matter how fast the DHCP server is. I think an XT would do, if
you could find a *nix to run on it. That solitary UPSed machine is fine.
The software I use is called "dhcp-3.0pl1-9"; there may be other software
out there that works fine, or a more recent version of what I have. My
config file is /etc/dhcpd.conf and looks like this:

ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

 option routers 192.168.1.31; # my router's internal IP address
 option subnet-mask 255.255.255.0;

 option domain-name "tampabay.rr.com";
 option domain-name-servers 65.32.2.130, 65.32.1.70, 128.227.128.24;

 option log-servers 192.168.1.11; # my machine

 default-lease-time 86400; # one day
 max-lease-time 804800; # one week

 host firewall { # I think that name is for internal use only
  hardware ethernet 00:c0:f0:54:6f:23;
  fixed-address firewall; # and that is as is listed in /etc/hosts
 }

 host thinkpad {
  hardware ethernet 00:09:6b:bf:f0:3d;
  fixed-address thinkpad;
  option root-path "192.168.1.11:/nfs"; # this host boots via NFS
 }

# more, similar, hosts go here

}

subnet 192.168.1.0 netmask 255.255.255.0 {
        # random other machines that hook into the network
        range 192.168.1.128 192.168.1.254;
        option broadcast-address 192.168.1.255;
}

subnet 192.168.213.0 netmask 255.255.255.0 {
}

# other subnets that are used for whatever reason

Hmm, just realized I may have fouled up my subnet settings in that file...
have to work on that. But you get the idea. You'll probably change them
for your own use anyhow.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
              
      He who will not reason is a bigot; he who cannot is a fool;
        and he who dares not is a slave.  -Sir William Drummond

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:22:52 EDT