Solved

A few questions about bind

Posted on 2009-06-30
2
387 Views
Last Modified: 2013-11-08
Hello,
I have a written a web based app in java, which generates zone files for bind. They are currently downloadable. But what I want to happen is to post the zone files directly to a bind install on the local server, and have those zonefiles setup to replicate to 2 or more external dns servers on the public internet. My questions are these:

1. Is this possible?
2. If its possible what would have to happen for me to publish the zone files to the local server? ie. where are the zone files written to, and what do I need to do to bind to make them active?
3. Assuming step 2, what needs to happen to have these zone files automatically replicated to external (public) dns servers?

Worth 500 points.

Thanks,
Rick
0
Comment
Question by:richardsimnett
2 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24752991
Hi,

First of all to create a zone in bind means:
- Creating an entry in named.conf
- Creating zone data in the appropriate folder
- Restart the name server

This is similar in the slave. In that you need to:
- Create an entry in the named.conf and specify the address of the primary
- Restart the name server.

So as you see it requires you to have access to both Primary and Secondary servers.

1) If you have access to both it is possible to create zoens through any application such as Shell scripts and any interpreted or compiled programming languages.

2) As I've explained above you need to create both zone file and a record in the named.conf and then you need to resrtart the named dameon.

3) I've explained this above also. You need to access the secondary server to modify its named conf to include the secondary entry and you need to restart the named over the secondary so that it will replicate with the primary.


0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 24754295
You may wish to setup bind with a Mysql back end.

Your java app, will build the zones in the mysql database.
You would have a process on the master name server that will check the mysql database for new zone additions. and build the named.conf file that needs to be pushed to the slave (public) DNS.
Or set all of them as bind with mysql backend while at the same time configure mysql replication.

Alternatively, you could have a process that would add entries to the named.conf and push them to the slaves while the zone file on the Master name server is setup as dynamic.  Using the java application you could then issue dynamic updates to the zones.

Look for bind tools and you are bound to find something.
http://www.debianhelp.co.uk/bindweb.htm
0

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

1 Experts available now in Live!

Get 1:1 Help Now