Primary and alternate DNS problem

Sharky Forums


Results 1 to 14 of 14

Thread: Primary and alternate DNS problem

  1. #1
    Great White Shark vertices's Avatar
    Join Date
    Sep 2000
    Location
    Palm Coast, FL
    Posts
    6,001

    Primary and alternate DNS problem

    I setup a win2k domain. The clients are set up with DHCP and are given 2 DNS server addresses. The first one is the DC address. The second one is a linux router address which is acting as a NAT router for internet access.

    I wanted the clients to still be able to get to the internet in case the DC goes down for repair, reboot, whatever. This works and the clients switch to the linux box for DNS for internet addresses when the DC is not available. Doing this obviously causes all local DNS queries to be unresolved so they can not ping local hosts. However when the DC comes back online the clients continue to use the linux box for DNS. They do not automatically switch back and so until they reboot (or release/renew) they are unable to ping local hosts.

    So my question is, how do you make all the clients only use the alternate DNS address until the primary DNS comes back online?

  2. #2
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    You should have a backup DNS server for your internal network. Configure forwarders to handle addresses that cannot be resolved locally. You do not want your local DNS to be visable from the internet even if you are using private addresses.

  3. #3
    Great White Shark vertices's Avatar
    Join Date
    Sep 2000
    Location
    Palm Coast, FL
    Posts
    6,001
    I understand that. But this is a small network only consisting of 7 clients.

    They are not going to pay for another DNS server.

    The way it is now, DNS is not made available FROM the internet. The linux box is simply a NAT router with DNS caching for internet names. The linux box is not manually configured or dynamically updated with local DNS names, hence it can only resolve internet names not local.

    Everything is fine until the DC goes down. Then clients can only resolve internet names and not local names. This is fine while the DC is temporarily down, but when it comes back up they have to reboot to get back to using it as the DNS server.

    Forwarders will only help while the DC is up. I'm talking about while it's down.

    So what you're saying is that this is impossible without having the clients reboot or release/renew?

  4. #4
    By the Power of Greyskull Colossus's Avatar
    Join Date
    Jul 2002
    Location
    Boston, MA
    Posts
    21,140
    I dont think that is possible

    There is no real direct interaction to force such a switch between the DC and linux router.

    Intel I9 14900K|ASUS - MAXIMUS Z790 HERO|ASUS GTX 1080 Ti|64GB G.Skill|(3) Samsung 990 Pro 4TB NVME |Custom water cooling||Alienware AW3423DW 34" OLED

    288TB Plex server (UNRAID)
    (16) WD Red Pro 20TB

  5. #5
    Great White Shark vertices's Avatar
    Join Date
    Sep 2000
    Location
    Palm Coast, FL
    Posts
    6,001
    Originally posted by Colossus
    I dont think that is possible

    There is no real direct interaction to force such a switch between the DC and linux router.
    Thats what I'm kind of thinking. Bummer

    Does anyone have any suggestions on how I can reconfigure this (without purchasing another DNS server) to allow internet access in the event the DC is unavailable but still resolve local names when it comes back up?

    Also I got a quick question regarding forwarders anyway. I normally have root hints configured with the 13 root servers. This normally works fine and I don't need to configure forwarders for DNS. What benefit would I get by specifying my ISPs DNS servers as forwarders?
    Last edited by vertices; 05-16-2003 at 05:39 PM.

  6. #6
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    with only 7 nodes, why use DHCP? It is only an extra overhead item.

    Assign static IP addresses and use a hosts file for DNS resolution. You don't even need an internal DNS sertver. That reduces the load on your DC.

  7. #7
    Great White Shark vertices's Avatar
    Join Date
    Sep 2000
    Location
    Palm Coast, FL
    Posts
    6,001
    Originally posted by ua549
    with only 7 nodes, why use DHCP? It is only an extra overhead item.

    Assign static IP addresses and use a hosts file for DNS resolution. You don't even need an internal DNS sertver. That reduces the load on your DC.
    Thats actually a GREAT soloution! Thanx ua549!

    Do you have any comments on my thoughts on the difference between root hints and forwarders?

  8. #8
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    A forwarder is another DNS server that your primary forwards requests to when it can't resolve an address.

    All you need do is have a local DNS server configured to handle local requests and cache frequently used addresses with forwarders defined that point to your ISP's DNS servers to resolve non-local (internet) addresses. In my case I have a local zone for my private network and 2 forwarders defined for internet resolution. It works very well. I also have HOSTS files on each node for local resolution in case my DNS server is off line for any reason. (It hasn't been off line in almost 2 years.)

  9. #9
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    Originally posted by Colossus
    I dont think that is possible

    There is no real direct interaction to force such a switch between the DC and linux router.
    by default DNS will "round robin" between servers defined for any given FQDN.

  10. #10
    Great White Shark vertices's Avatar
    Join Date
    Sep 2000
    Location
    Palm Coast, FL
    Posts
    6,001
    Originally posted by ua549
    A forwarder is another DNS server that your primary forwards requests to when it can't resolve an address.

    All you need do is have a local DNS server configured to handle local requests and cache frequently used addresses with forwarders defined that point to your ISP's DNS servers to resolve non-local (internet) addresses. In my case I have a local zone for my private network and 2 forwarders defined for internet resolution. It works very well. I also have HOSTS files on each node for local resolution in case my DNS server is off line for any reason. (It hasn't been off line in almost 2 years.)
    I understand all of that. What I am asking is for you to explain to me the benefit of using forwarders INSTEAD of using root hints to define the 13 root servers on the net.

    My home setup is similar to yours. I have a win2k server with a local zone and I use "Root Hints". You apparently don't use Root Hints but use forwarders. Whats the difference?

    This is just a question to help me understand better, not for this problem.

  11. #11
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    I use root hints, but never modify the root hints file. I also make sure that I delete the "." zone so My DNS is not perceived as a root. If you modify the root hints file you must maintain it with every upgrade and patch. I configure my systems to minimize manual maintenance.

  12. #12
    Great White Shark vertices's Avatar
    Join Date
    Sep 2000
    Location
    Palm Coast, FL
    Posts
    6,001
    I don't modify the root hints either. I just leave it as is.

    So I have the same functionality as you although I don't need forwarders.

    Since you also have root hints configured, why do you use forwarders? It works just fine with out them.

    Thanx for your help ua549, I've obviously still got a lot to learn.

  13. #13
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    Root hints points to the TLD root servers that may be many hops away. For performance reasons you want a server that is nearby, thus the forwarder. I use DNS caching so most DNS lookups are resolved on my LAN. The first forwarder is 2 hops away - remote gateway, remote DNS server.

  14. #14
    Great White Shark vertices's Avatar
    Join Date
    Sep 2000
    Location
    Palm Coast, FL
    Posts
    6,001
    Cool.....thanx ua549.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •