DNS Setup Support

I incorrectly deleted the DNS values in my account. I need DNS setup support for the following:

Add an A, AAAA, or CNAME record for www so that XXX will resolve.

Add an A, AAAA, or CNAME record for your root domain so that XXX will resolve.

Add an MX record for your root domain so that mail can reach @XXX addresses or set up restrictive SPF, DKIM, and DMARC records to prevent email spoofing.

Thank you!

Welcome to the Cloudflare Community. :logodrop:

The values for those records are provided by your host, not Cloudflare. If you had previously entered the correct values and mistakenly deleted them, you could find them in the backup copy you made when exported your DNS zone data. You always make a backup, right?

If you forgot to make a backup, you can look for the deletion in your audit logs and use the values you find there.

If you are unable to use either of those methods, you will need to consult with your service provider to determine the required values.

Regardless of the method used to identify the missing values, once you have identified them, you can recreate them in the DNS app in your Cloudflare Dashboard.

Thank you very much! I’m going to check those solutions as I did not save a backup as this was the first time I attempted this. FWIW im using namecheap as my domain provider. Not sure if you have experience using that provider. Thanks!

1 Like

If you accidentally deleted something from Cloudflare’s DNS, you can also visit the Audit Log in the Manage Account section: https://dash.cloudflare.com/?to=/:account/audit-log

If you go back in time to the day you deleted the records, you should see Rec del entries, and it will contain the record data in JSON format.

1 Like

Thank you @CFBrandon and @epic.network. I was able to download the audit logs and have found entries for the DNS Records I inadvertently deleted.

When I go to add these records back into under the DNS Records section, I have the following fields I can enter data into (Type, Name, Ipv4 address) on the Cloudflare dashboard for DNS Records.

In the json strings, while I believe type corresponds to “type,” I am not sure whether Name corresponds to “name” and IPv4 corresponds to “content” or if it is the other way around.

I appreciate any additional help you can provide and whether I need to enter any additional information from the Audit Log json fields from the DNS Records, for example in the Comments section.

Thank you!

Yes, IPv4 is the content of the A record, while “Name” corresponds to “name” and “Type” to “type”.

The only other option is whether you want to proxy the record or keep it DNS-only. DNS-only means that requests go directly to your server, while proxied means that requests are sent to Cloudflare first, which is necessary to use any of Cloudflare’s products.

1 Like

Thank you very much for confirming @Laudian. Does it matter what order I re-enter the DNS Records back into the Cloudflare dashboard under my domain? Meaning - will my domain and DNS resolution work regardless of the order they are re-entered?

Separately, but related for what reasons would someone chose DNS only vs. choosing to proxy via Cloudflare. For reference my use case is for internal services on my homelab vs. website hosting. Thanks!

The order does not matter.

Cloudflare’s proxy only works for HTTP(S) traffic. If you use anything else, it needs to be on a DNS-Only hostname.

1 Like

Thanks for clarifying @Laudian - so if my intention is to drive HTTPS / SSL across my services I’ll need to keep the Cloudflare proxy switched on? Appreciate that final clarification (for now)! Thanks!

You don’t need it on. DNS-Only works for everything. If you intend to use any Cloudflare services (i.e., Caching, Firewall…) then you need to enable the proxy.

1 Like

Awesome thanks again @Laudian - really appreciated the quick and helpful responses from this community to a noob. Great help!

1 Like

A post was split to a new topic: HTTP 403 when proxied