Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


DNS Setup Question

Posted on 1999-07-26
Medium Priority
Last Modified: 2010-03-18
I'm running named from linux RH 5.2 ver 8.2.1. It works for the local domain. How do I set it up to look at our ISP name server for stuff thats not local. I looks like if I add a 2nd nameserver line in resolv.conf it has no effect. But only ISP's nameserver line will make it work out side, Then local won't resolve.

Any Ideas
Question by:dpdr
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

stefanx earned 800 total points
ID: 1585900
Basically you need to set your DNS Server up as a primary for your local domain. You also need to refer it to your named.cache file for all other requests or set your ISP's name server as a forwarder for requests.

I don't have a linux machine right here to check the exact syntax, but basically, your /etc/named.conf should look more or less as follows:

options {
      directory "/var/named";
      forwarders {;};

zone "" in {type master; file "";};
zone "." in {type hint;      file "named.cache";};

What this means is that all your zone files will be stored in /var/named. For your setup these files are named.cache and The forwarders option tells your named server which other DNS servers it should use for forwarding queries to (only for queries that it is not the primary for)
I put this at, you need to enter your ISP's DNS Server here (IP obviously)

The named.cache is the file that contains the details of the root domain name servers. This should have shipped with bind. If you read the file it will also tell you where to download the latest version of the file. This file is not really needed in your setup since you are using a forwarder, nevertheless, it is a good thing to have especially if your ISP's DNS Server goes down.

Author Comment

ID: 1585901
That worked like a charm.  
Thanks very much  


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

715 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