Differences between revisions 7 and 8
Revision 7 as of 2011-07-17 18:49:22
Size: 2054
Editor: ppp121-45-255-104
Comment: style
Revision 8 as of 2011-12-02 22:36:23
Size: 2055
Editor: DanielAxtens
Comment: dhcp.leases => dhcpd.leases
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
Leases are visible in {{{/var/lib/dhcp/dhcp.leases}}} - unfortunately because of ISC DHCP stupidness expired leases are still listed in this file and so you have to go digging around to find the most recent one. Leases are visible in {{{/var/lib/dhcp/dhcpd.leases}}} - unfortunately because of ISC DHCP stupidness expired leases are still listed in this file and so you have to go digging around to find the most recent one.

As well as traditional routing, switching and filtering, UCC runs a number of network services to make life easier.

DNS

There is a BIND 9 installation on mooneye, with domain data stored in /etc/bind/domains. To make DNS administration (ostensibly) simpler, A records for the ucc.asn.au and ucc.gu.uwa.edu.au zones, and reverse lookups for UCC's subnets are managed through one file, /etc/bind/domains/primary/ucc.machines. From this, a UCC-made script called zonemake.py creates the actual zonefile to be loaded by BIND. The syntax for ucc.machines is fairly simple, and there is some documentation in /etc/bind/domains/primary. Server administration is in /etc/bind/named.conf.local. If you modify ucc.machines remember to run zonemake.py. If you modify anything, remember to run rndc reload to make sure your changes are loaded (also remember to increment the serial in the zonefile you're editing - but you already knew that, right?). Some wheel members find it useful to watch daemon.log to catch any errors in configuration as the server reloads. A good policy is to always run:

rndc reload && tail -f /var/log/daemon.log

after you have been fiddling with DNS.

DHCP

DHCP runs on madako and its configuration file lives at /etc/dhcp/dhcpd.conf. The same file is used for both assigning static addresses to clubroom machines (by MAC address) and to assign addresses from a pool to wireless clients and unknown new devices on the wired network. How to assign static IP addresses should be fairly self-evident from the plethora of other machines already set up with static addresses, but note that the IP address for any machine is inferred from DNS, not specified explicitly in the configuration file.

Leases are visible in /var/lib/dhcp/dhcpd.leases - unfortunately because of ISC DHCP stupidness expired leases are still listed in this file and so you have to go digging around to find the most recent one.


CategorySystemAdministration