So, I've this situation:
A server (under CentOS) with a lot of domains with around 2 TB of data under them, and I'm migrating it all to another machine with faster I/O. The migration details / software are not important here.
Due to some internal reasons, I'll image the entire system and deploy it into the new machine and then make the proper adjustments. For this will have to take the machine down and wait an hour or two for the image to be transferred.
My question is: Whats the best way to display a static webpage saying the website is currently unavailable for maintenance? Without having the change name servers for all the domains, and while the real server is offline?
All the domains on that server are currently pointed to name servers
My ideia was to change
ns2.example.com IP from the real server to the small VPS hoping that everyone surfing a domain pointed there would end up on the small VPS displaying a static page saying the website was currently unavailable for maintenance.
If I'm correct, how can I configure bing9 and a web server like lighttpd to reply to incoming DNS queries thought
ns2.example.com with it's own IP an then lighttpd show a static page for any domain? like a wildcard...