Re: Questions about DNS. (ANSWERS)

Atif Ghaffar <[email protected]>
Newsgroups gmane.comp.isp.ispman.devel
Message-ID <[email protected]>
If you are looking bind8/9 then yes, there is an undocumented feature in 
ispman.

See extract from the code below. Basically you can just add a file 
called (For example: for domain test.com)

/opt/ispman/var/dns/test.com.local

This file should have whatever entries you may have in a zone file.

Example:

smtp	5M	IN	A	1.1.1.1


__Extracted_code_from_dns.bind8.lib__



# look if there is a local file where more entries for this zone are 
defined.
# If yes, then read the file and append the entries to the zone file.
# The admin is responsible to make sure that the entries dont disturb 
other entries coming from LDAP

my $local = join '/',  ($ispman->getConf("installDir") , 
"var/dns/$domain.local");
         if (-e $local) {
             print ZONE "\n\n";
             print ZONE "; ATTENTION\n";
             print ZONE "; The following is coming from a localfile\n";
             print ZONE "; $local\n";
             print ZONE "; so dont blame ISPMan if that breaks your 
DNS\n\n";
             print ZONE cat($local);
         }
     }



Robert Middleswarth wrote:
> I was thinking more of /opt/ispman/templates/named.conf.footer 



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.