I wanted to know if whether it’s possible to configure VirtualMin to handle all incoming domain name requests even if a record for that domain doesn’t exist on the server? Basically I want a
wildcard domain set up so that I only need to have the domain at the registrar point to my nameserver.
Thanks for your answer but I am afraid that isn’t what I am trying to do.
Here’s the scenario. I am only going to use one domain which is going to have a website. All other domains I want redirected to this main domain. There are going to be over 20,000 domains.
Well, if you have the DNS for those domains all pointed to the primary IP of your server – Apache will deliver the default website, if the domain doesn’t have it’s own website.
However, I’m not sure how to do what you’re describing without first setting up DNS for each of those domains.
Maybe there’s an interesting way to make that work that I’m not aware of… but to my knowledge, you’ll still need to configure your DNS server with each of those domains, and make sure that it returns the correct IP address when a lookup is performed.