Having trouble with the nameservers

Hello. I previously had my domain hosted on InfinityFree and CloudFlare activated through the cpanel (CNAME). Now that i want to work with MX records, i disabled CloudFlare by deleting the cname, deleted my site on CloudFlare and re-added it. They asked me to set their nameservers and delete the byet ones, but i didn’t do the latter. My website is currently down (CF said “wait up to 24 hours”), though the cpanel still says it’s with byet. Now my registrar says "Invalid nameserver given ns1.byet.org“ for some reason. Here are some screenshots:

https://puu.sh/xWsxK/6f7411299a.png
https://puu.sh/xWsyY/155f76c1f4.png

The cpanel says to set some nameservers, the client area others. What are the correct nameservers? What am i doing wrong?

Domain: https://moonlightcapital.ml/
Account name: rfgd_18948836

The DNS settings in Cloudflare are not correct. Cloudflare is just pointing your domain to a parking page now.

All the different sets of namerservers you’ll see are valid. You can use ns1-5.byet.org, ns1.epizy.com and ns2.epizy.com or ns1.rf.gd and ns2.rf.gd.

ok thanks. What should i set now?

@MoonlightCapital said:
ok thanks. What should i set now?

See:

@Admin said:
All the different sets of namerservers you’ll see are valid. You can use ns1-5.byet.org, ns1.epizy.com and ns2.epizy.com or ns1.rf.gd and ns2.rf.gd.

ok, so i removed every nameservers except the cloudflare ones in the registrar panel, then set the byet ones on cloudflare with NS as type. Is this correct?

@MoonlightCapital said:
ok, so i removed every nameservers except the cloudflare ones in the registrar panel, then set the byet ones on cloudflare with NS as type. Is this correct?

Needing to set your own NS records is extremely rare, and definitely not necessary if you just need to point a domain to a server.

To properly answer your question on what you should do, you have to answer one important question: do you want to use InfinityFree nameservers, Cloudflare nameservers or the nameservers of your registrar. You can only use one of them.

i need my site hosted on infinityfree, but i want CloudFlare active via DNS so i can receive mails.

@MoonlightCapital said:
i need my site hosted on infinityfree, but i want CloudFlare active via DNS so i can receive mails.

In that case, your nameservers settings are OK now. They’re only pointing to Cloudflare.

As for the DNS records, you’ll need at least these records configured in Cloudflare:

  • CNAME record on name @ pointing to your account’s main domain (how to find it).
  • CNAME record on name www pointing to your main domain.
  • MX record on name @ pointing to mx.epizy.com.

You should probably delete any other DNS records listed there.