DNS List
[ /home ]
[ /etc/motd ]
[ /bin ]
[ /etc ]
[ /var ]
[ /sbin ]
[ /usr/bin/find ]
[ Members ]
Introduction
In order to display an easily readable list of entries hosted on my DNS servers,
I wrote this PHP script to parse A and CNAME records out of my BIND zone files,
and generate an expandable/collapsable table containing the information.
Demonstration
You can view a demonstration of DNS List, working on a sample zone file
here.
This script expects to find the zonefile in a
zonefile subdirectory
of the directory in which the script currently resides. Again this is easy to change,
but it was written for my purposes and I'm providing it here should it be useful to
others. There is a lot of hard-coding within the script for "kw.zone" and "test.zone" -
so modify this to suit your needs. The script can parse fairly simple zone files
easily, but hasn't been tested with more complex zones. Your milage will vary.
Download
You can download the PHP source here or
view syntax-highlighted HTML of the code
here.