[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Conditional DNS forwarding with named on Linux

Posted on 2010-01-03
1
Medium Priority
?
3,489 Views
Last Modified: 2012-05-08


I have a Centos 5.2 server which runs named for DNS resolution - it doesn't hold any information of its own, and just forwards all requests. From the named.conf:

options {
[...]
        forwarders { 1.1.1.1; 1.1.1.2; };
};

All other lines in named.conf are left as default.

I want to change the configuration so requests for anything under newdomain.com get passed to 22.22.22.22, while requests for any other address go to 1.1.1.1 or 1.1.1.2

How can I configure the DNS on this server to do this?
0
Comment
Question by:DrStalker
1 Comment
 
LVL 6

Accepted Solution

by:
georgekraj earned 2000 total points
ID: 26169020
Hi,
      In /etc/named.conf file, you can have global attributes and domain specific attributes.

For domain specific attributes, use the following syntax.

zone "newdomain.com" {
type forward;
forwarders { 22.22.22.22; };
};

Then, use this as a global attribute.

options {
[...]
        forwarders { 1.1.1.1; 1.1.1.2; };
};

Please try this and give your feedback.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
Resolve DNS query failed errors for Exchange
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

873 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