How do I set up a nameserver to process ALL DNS requests? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about apache-2.2, bind, nameserver, domain-name-system, .
Is there any way I can set up a nameserver to process ALL DNS requests that come to my server and pass them on to backend servers regardless of whether I have a DNS entry for the target domain?
For example, even if I don’t have a DNS entry for example.com, as long as a request for example.com comes to my server, it gets processed.
Currently, I have a a server running bind, which resolves all requests to its own IP. I have a load-balancer set up which forwards all the HTTP requests to one of many back-end servers. All my backend servers run apache2. Right now, I also have DNS entries on ALL my backend servers for all the domains I want them to process (because they’re my backup nameservers). But I’m adding new domains all the time and don’t want to add more DNS entries to ALL my servers each time each time I add a new domain…
I just want to get around having to add any DNS entries at all. ANY method of doing this would be appreciated.
If you have a primary and set of “backup” nameservers, then why aren’t you using DNS zone transfers (possibly with notification) to ensure that when you add an entry on the master DNS, the secondaries pick it up immediately?
In theory you should be able to setup com as the domain, and setup a DNS entry for * to point to the correct public IP.
“Caching nameserver” is what you’re looking for, I assume. Just add a Forward instruction to your bind configuration, as explained in many tutorials and setup instructions, and you’ll be fine.
I know what you want and I want it too. For those who are confused about this question, i think it means this:
Say I have 100 domain names. All have the same NS records: NSX.EXAMPLE.COM
- I’m in charge of NSX.EXAMPLE.COM
- I have just one zone file, with A record pointing to 10.0.0.1
- I want ANY request that comes to NSX.EXAMPLE.COM to return data from that record.
Now, the main purpose of this question is to come up with a system that works when I decide to add another domain WITHOUT ANY MODIFICATION to the DNS server configuration.
I now register FOO.COM and point it to NSX.EXAMPLE.COM. This should be enough to make FOO.COM resolve to 10.0.0.1
Another way of looking at this would be like this:
If you BY MISTAKE query NSX.EXAMPLE.COM for any domain, it will respond with 10.0.0.1