LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2012, 01:14 PM   #1
Tangles
LQ Newbie
 
Registered: Aug 2008
Location: Hillsboro, OR
Distribution: Ubuntu 19.10
Posts: 7

Rep: Reputation: 0
Configure BIND9 for Ubuntu 12.04.1 Server with Two NICs


We're attempting to replace our two DNS servers (currently running Red Hat Enterprise Linux Server release 5.6, virtualized, with one NIC) with two newer virtualized servers running Ubuntu 12.04.1 LTS 64 bit with TWO NICs.

I'm both a linux novice as well as a BIND9 novice and could use some assistance in configuring this properly.

We have BIND running in a chroot environment currently but need some guidance on how to properly configure it so the internal NIC handles the internal requests, and the external NIC handles outside requests, for security.

Thoughts?

 
Old 12-13-2012, 01:50 PM   #2
kenneth_phough
Member
 
Registered: Dec 2005
Location: Birmingham, AL
Distribution: CentOS, REHL, Vine Linux
Posts: 67

Rep: Reputation: 3
BIND configuration for internal and external views are very similar except your reverse look up are different. Search how to setup BIND for lan and wan. There are great examples online.

Essentially you need to have two zones and two reverse lookup zones. Here is a quick example from mine:
Code:
// excerpt of my LAN (internal)
zone "example.com" {
    type master;
    file "example.com.lan";
    allow-update { none; };
};
    
zone "1.168.192.in-addr.arpa" {
    type master;
    file "1.168.192.in-addr.arpa.db";
    allow-update { none; };
};

// excerpt of my WAN (external)
zone "example.com" {
    type master;
    file "example.com.wan";
    allow-update { none; };
};
// replace xxx.xxx.xxx with your external IP network
zone "xxx.xxx.xxx.in-addr.arpa" {
    type master;
    file "xxx.xxx.xxx.in-addr.arpa.db";
    allow-update { none; };
};
Also question about your setup (and I may have misunderstood you) but are you making a virtual instance as bind server? Why? What if the host goes down? You will loose all name resolution. I recommend using a physical box for things like dhcp and dns.

Hope this helps. Let me know if you have any questions.

Last edited by kenneth_phough; 12-13-2012 at 01:51 PM.
 
  


Reply

Tags
bind9



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
Gateway server - how to configure NICs and iptables to control Internet access tuxmariner Linux - Networking 4 12-11-2012 06:48 PM
[SOLVED] few question about configure bind9 on Ubuntu. yy885 Linux - Server 5 11-17-2011 12:25 AM
Bind9 on Ubuntu server 10.04 - DDNS Punnisherr Linux - Server 0 10-31-2011 07:46 AM
How to configure Ubuntu using 2 NICs? new2linux2009 Linux - Newbie 5 05-27-2009 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:41 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
Open Source Consulting | Domain Registration