LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-09-2013, 07:32 AM   #1
pedenski
Member
 
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 test.com which directs to 192.168.8.5 (my web/ftp server)

and also a forwarder to (8.8.8.8)

now, i want to create another domain with different set of fowarders and IP

test2.com which directs ip to 10.10.10.1 and a forwarder to (10.124.232.1)


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, 05:25 PM   #2
Kustom42
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 test1.com is 192.168.8.5 and test2.com is 10.10.10.1.

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:

test1.com who has IP address 192.16.8.5 should use xzy interface and xyz gateway and test2.com who has IP address 10.10.10.1 should use abc interface and abc gateway.


If that is the case, provide the following:
Code:
route -n
ifconfig
We can then give you the route add statements to add the appropriate routes to the system
 
Old 05-13-2013, 01:23 AM   #3
pedenski
Member
 
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 (192.168.8.5)

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

};

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

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

now, what i want to create is use this "test.com" domain to be accesed by a different subnet (192.168.9.0).
this server has 2 NIC's, one for (192.168.8.0) and (192.168.9.0). 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?
 
  


Reply


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 04:21 AM
[SOLVED] BIND 9.7: does it optimise amongst forwarders like dnsmasq? catkin Linux - Server 1 12-15-2011 04:27 AM
Increasing BIND forwarders timeout WojtekO Linux - Networking 3 04-28-2011 06:57 AM
LXer: bind: Create Slave Zone Files LXer Syndicated Linux News 0 06-08-2010 10:00 AM
DNS Could not set forwarders for zone '.'. Error dalvis Linux - Server 2 10-02-2008 04:44 PM


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

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