Hmmm. Im not sure about a lot of those dns records.
Also , why are you using ovh nameserver if this is a vps? Is ovh also your registrar? If the above records are with ovh then you need to disable bind dns for the domain in virtualmin (outlined below in this post)
All that is needed to resolve the dns error is a single A record…something like
xorex.rocks A record 12.34.56.78 (use your vps ip addres here)TTL= 300 (this is the number of seconds and i have initially set for 5 minutes)
For email, you dont use webmail.xerox.rocks necessarily…“webmail.” is a subdomain used by some email programs online access…but its not always used by outlook or thunderbird email clients, they will simply follow the informaiton about “incoming and outgoing mail server” that you enter when setting up your email client app. (ie server1.xerox.rocks or bad1.xorex.rocks or whatever your call your server… host.domain.com)
So for mail record, you do something like…
xerox.rocks mx record 12.34.56.78 (use your server ip address here) 5 (emai record priority)
You appear to have an mxrecord pointing at a name…that is not actually the rule for mxrecords. If I am not mistaken and MX record must point at an ipaddress.
You then need 2 further records for mail…an spf record and a _dmarc record. Best to use online tools to generate these (google each …ie spf generator or _dmarc record generator)
if you are using virtualmin to control dns, then you would need to setup your system as a nameserver…this requires registering glue record with your domain registrar. I would suggest you do not use this option initially. So in Virtualmin>Edit Virtual Server, disable dns for you website. see below,
Then just:
- point a single A record at your VPS in your registrars domain console where zone records go (this will get website working)
- add your mx, spf, _DMARC records (this will get email dns working)
I forgot one other thing, you also need to ensure that you have setup a “reverse ptr” with ovh. Failure to do this will cause you problems down the track with mail. reverse ptr is used to help with email server security checks and is one of the first ports of call in determining if your mail server is an authentic one or hacker (criminals are slack asses and almost always cant be bothered with such things)
I am not sure if xorex.rocks is your full domain name or whether its xorexrocks.com?