So, an emergency has been landed in my lap, and unfortunately I'm ill-equipped to deal with it. An IT tech for a client's company changed the A record for a domain, then went on holiday. He is the only one who has access, and there's no way to change it back until he reappears from the jungle.
He was supposed to point just the www.
A record to a new IP, pointing to our server which is hosting mysite.com
- however, he changed the *
A record to the new IP - meaning all subdomains are now effectively dead (mail.
, exchange.
, secure.
, etc). Originally the *
A record pointed to another server that handled all of the subdomain requests separately.
Although I can't access the DNS controls, I do have complete access to the DigitalOcean server and control panel for where the *
A record is now pointing.
Is there anything I can do from my end on the DigitalOcean server, either via the DNS control panel (although it doesn't appear so at a glance) or via the virtual.conf
file (see below) to properly forward any requests (i.e. mail.mysite.com
) to the correct IP that should then handle the request correctly?
For reference, the server is CentOS 6.5 x64 running nginx. The server block that's currently handling the incoming request is as follows:
server {
listen 80;
server_name mysite.com www.mysite.com;
root /var/www/html/mysite.com/;
error_page 403 404 500 502 503 504 = /server_error.php;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Thanks for your help. Apologies for the TL;DR.