Bind DNS Configuration

-CONTRIBUTED TOOL-

Through the following scripts, it is possible to generate the "zone" files for bind (a.k.a. named), for a single domain.

See also the related  ISC DHCP Configuration scripts.

Configuration options

The configuration options are in the freenac database and can be configured by the windows GUI 

  • web_showdns (true/false) : show the dns-related fields in the web interface
  • dns_domain = general domain
  • dns_ns = comma separated list of name servers (no space).
    These servers must be resolvable.
  • dns_mx = comma separated list of mail servers (no space).
    This is an ordered list (primary server first)
  • dns_primary = primary name server where this host file will be used (used in SOA)
  • dns_mail = email address for the DNS administrator (used in SOA)
  • dns_outdir = directory where the zone files will be written (existing files will be overwritten without confirmation)
  • dns_forwardzone = name of the generated zone file (forward).
  • dns_subnet = subnet for which a reverse dns zone file will be generated

generate_dns.php

This script will generate the normal (forward) zone files from the systems table.
An 'A' record will be generated for each system and will point the 'hostname' field to the last known ip ('r_ip').

Aliases (CNAME records) will be generated from the (comma separated) 'dns_alias' field and will point to the 'A' record of the host.

generate_dns_reverse.php

This script will generate the reverse zone files from the sytems table.

For each subnet matching the '$dns_subnet' configuration option, reverse records (PTR) will be extracted from the systems table. The last known IP address wil point to the hostname.

The generated files will be named like '254.168.192.in-addr.arpa' for the 192.168.254.0 subnetwork. 

Syndicate content