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


Conditional DNS forwarding with named on Linux

Posted on 2010-01-03
Medium Priority
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 {;; };

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, while requests for any other address go to or

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

Accepted Solution

georgekraj earned 2000 total points
ID: 26169020
      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 {; };

Then, use this as a global attribute.

options {
        forwarders {;; };

Please try this and give your feedback.

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