1. A method of making data available from a DNS database, including: specifying a query function for querying the DNS database, wherein the query function has a query function name and includes a structure and a member; creating an index for the structure on the member; compiling the query function to be available to a user by invoking the query function name without the user having to specify the structure and the member, wherein compiling the query function includes automatically generating and storing the index for the structure on the member when the query function is compiled, and wherein the query to the DNS database for the member in the structure can be satisfied by accessing the generated index; and automatically updating the index each time a write operation performed on the DNS database affects the index.