[LUGSB] Question about FTP.
Michael Hrivnak
mhrivnak at triad.rr.com
Sat Mar 3 18:11:46 EST 2007
DHCP and DNS are not really that bad to administer. Here is how I have my
dhcpd.conf file setup to assign the same IP addressed to the same machines
every time:
/*--------------------------
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.20.10 192.168.20.99;
option routers 192.168.20.1;
# Broadcom wireless router from Verizon
host broadcom {
hardware ethernet 00:0F:B3:CC:92:3D;
fixed-address 192.168.20.2;
}
host mydesktop {
hardware ethernet 00:11:50:9B:98:13;
fixed-address 192.168.20.3;
}
}
---------------------*/
I also installed bind as a caching DNS server, which I think worked out of the
box in Debian with no modifications. Then I added a local zone file. Here
is how that looks:
/*---------- /etc/bind/named.conf.local
zone "hrivnak.org" {
type master;
file "/var/cache/bind/hrivnak.zone";
};
----------------------*/
/*----------- /var/cache/bind/hrivnak.zone
; BIND data file for local loopback interface
;
$TTL 300
@ IN SOA localhost. root.localhost. (
2007011201 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS firewall
@ IN A 192.168.20.151
firewall IN A 192.168.20.1
router IN A 192.168.20.2
mydesktop IN A 192.168.20.3
wind IN A 192.168.20.151
boss IN A 192.168.20.152
asst IN A 192.168.20.153
-------------*/
However, if you just want to use "hosts" files to keep track of machines, I
would put the file in subversion (or your favorite revision control system)
and run a cron job on each box that updates on a regular basis. Then you can
just commit a change to the repository, and all of the machines will get the
new file in short order.
Michael
P.S. I think we all know the solution to Windoze networking problems... ;)
On Saturday 03 March 2007 17:47, Michael F. Lamb wrote:
> > Sometimes
> > you can share folders on one system and they just refuse to appear on
> > other windows machines... but eventually do after a few minutes.
>
> When I've had similar problems, I've suspected that it's because the
> network switch (not a hub) that I've got all the machines plugged into
> doesn't do network broadcasts in the way Samba/SMB likes. IIRC using a
> hub rather than a switch made Samba behave less strangely. OTOH I never
> did figure it out completely and it's been a long time since I've had to
> use SMB.
>
> > They all grab an IP using DHCP, and
> > so it keeps changing, and is annoying.
>
> Who runs the DHCP server? Do you get your address from campus, from an
> ISP, or do you run a DHCP server?
>
> > So is typing in the dotted decimal addresses.
>
> DNS and DHCP servers are tedious to administrate, too. The laziest way
> I've found is to use my network router/switch, which does NAT and DHCP,
> to assign all my machines a static, private IP address. Then set up an
> appropriate /etc/hosts file on every machine so you don't have to type
> dotted quads.
>
> I do wish that there existed a small, simple-to-administer program that
> does DNS serving/caching and DHCP services for lazy people with a few
> machines on a tiny network.
>
> If getting a router is out of the question, and you've no control over
> your IP addresses, you could build some scripts that automatically
> update all your /etc/hosts files. (Assuming that your addresses don't
> all change at once. An account with no-ip.org for your server might help
> with that.)
>
> Linux supports Apple's auto-discovery 'Rendezvous' protocol too, in the
> form of 'avahi,' but I don't know much about it. Might be worth some
> Googling. I know I've built a linux-based iTunes playlist-server thing
> that magically shows up on all the Macs on the LAN using a tool that
> talks to avahi.
> _______________________________________________
> lugsb mailing list
> lugsb at mail.fsl.cs.sunysb.edu
> To unsubscribe from this list, go to:
> http://www.fsl.cs.sunysb.edu/mailman/listinfo/lugsb
More information about the lugsb
mailing list