Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-09-2013, 08:32 AM   #1
Registered: Feb 2012
Posts: 33

Rep: Reputation: Disabled
create another domain with different zone and forwarders - bind

how do i create another domain name with different forwarders and provides DNS to other subnet?

simply put,

in my current setup, i have which directs to (my web/ftp server)

and also a forwarder to (

now, i want to create another domain with different set of fowarders and IP which directs ip to and a forwarder to (

My VM is exposed to 2 different subnets (192.168.8.X and 10.X.X.X)

please let me know if my explanation is clear
Old 05-10-2013, 06:25 PM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I don't think you're asking this question correctly.

Does nto matter how many networks your system is exposed to, your system will only point to one set of root nameservers in /etc/resolv.conf.

Remember that DNS, forwarders, etc.. are just for DNS lookups ONLY, they do not tell your system how to get to the destination but only that the destination for is and is

Your routing table tells your system how to get to a destination based upon the IP address.

When you say forwarder I think you are referring to a default gateway that the traffic should be going through.

So can you please confirm that is what you are wanting: who has IP address should use xzy interface and xyz gateway and who has IP address should use abc interface and abc gateway.

If that is the case, provide the following:
route -n
We can then give you the route add statements to add the appropriate routes to the system
Old 05-13-2013, 02:23 AM   #3
Registered: Feb 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
im sorry if its kinda vague. ill try to explain it more clearly.

i have a BIND server at (

options {
        directory "/var/named"; // path of the zone files
        forwarders {; }; // DNS forwarder


zone "" IN {
        type master;
        file "test-fz"; // forward zone file stored in /var/named
        allow-update { none; };

zone "" IN {
        type master;
        file "test-rz";
        allow-update { none; };
}; is mapped to this server because it hosts an WWW/FTP server.

now, what i want to create is use this "" domain to be accesed by a different subnet (
this server has 2 NIC's, one for ( and ( but currently it only servers the (8.X) subnet

how would i configure this on my forward/reverse zone files?
is it okay to declare 1 domain name that can be accessed by 2 different IP address?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 05:21 AM
[SOLVED] BIND 9.7: does it optimise amongst forwarders like dnsmasq? catkin Linux - Server 1 12-15-2011 05:27 AM
Increasing BIND forwarders timeout WojtekO Linux - Networking 3 04-28-2011 07:57 AM
LXer: bind: Create Slave Zone Files LXer Syndicated Linux News 0 06-08-2010 11:00 AM
DNS Could not set forwarders for zone '.'. Error dalvis Linux - Server 2 10-02-2008 05:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration