Error: The serial argument cannot be empty - when adding TXT record to DNS zone
When I try to add a TXT record to verify a domain with Google Search Console I get the following error in cPanel "Error: The "serial" argument cannot be empty. "
If I try to do the same in WHM DNS Zone It simply does not add and gives no feedback apart from the spinner on the "Save Record" button which starts and then stops.
There are zero google results for "Error: The "serial" argument cannot be empty. " and there are not input boxes in cpanel DNS zone that are called "serial"
So what is wrong here?
-
I believe that "serial" is "Serial Number, in the SOA record, usually it's date&time like "2021110501". You could edit it manyally in file /var/named/DOMAIN.TLD.db 0 -
and is it empty? the SOA value? 0 -
and is it empty? the SOA value?
I cannot add an SOA type in DNS zone. Why is that? I am actually having issues with my host Afrihost. They cannot seem to get my DNS working in WHM. They tell me I must use domain parking however they also told me I must use domain pointing, but all I wanted to do was change the nameserver with the domain, but they are the registrar and don't have that functionality. so I am pretty confused on how to use WHM with the domain they provide.0 -
I cannot add an SOA type in DNS zone. Why is that? I am actually having issues with my host Afrihost. They cannot seem to get my DNS working in WHM. They tell me I must use domain parking however they also told me I must use domain pointing, but all I wanted to do was change the nameserver with the domain, but they are the registrar and don't have that functionality. so I am pretty confused on how to use WHM with the domain they provide.
DNS name servers needs to be changed at domain registrar, you won't be able to change that via WHM or cPanel.0 -
Yes I know that. Afrihost are the registrar and they don't have that functionality for the user to change the nameserver in the domain settings. Its a pretty confusing setup. They have their own way of changing DNS ownership to WHM by changing my domain to parked which I still do not understand. Apparently they are making this change for me now. All I wanted to do was add Google Search Console verification and they ended up knocking off 12 subdomains and the main domain by doing some funky DNS ownership by using pointing instead of parking, but it must now be parking so I am totally confused as to how Afrihost make a domain point to a server. It cannot be done by the user by simply changing the nameservers because they don't give you that as the registrar. 0 -
As far as I know for Google verification you only need to add a TXT record which you can do from your cPanel account, for that there is no need to change nameservers. Alternatively you can also upload a HTML file which might be easier if you are having issues handling the DNS records. 0 -
As far as I know for Google verification you only need to add a TXT record which you can do from your cPanel account, for that there is no need to change nameservers. Alternatively you can also upload a HTML file which might be easier if you are having issues handling the DNS records.
I could not add the TXT record which was the original error "Error: The "serial" argument cannot be empty. " I need to add the DNS entry so that it covers all subdomains including "www" I don't want to add multiple search console properties for each subdomain which is how it works if you verify with HTML files. This is an issue with Afrihost. They associate domains to servers on their end. The user cannot do this with nameservers which is why adding any DNS records gives an error.0 -
I cannot add an SOA type in DNS zone. Why is that?
In DNS Zone Manager you can not add a SOA record, but you can edit it.0 -
In DNS Zone Manager you can not add a SOA record, but you can edit it.
I do not have one to edit. Is this something to do with my host?0 -
I do not have one to edit. Is this something to do with my host?
Are you in WHM or cPanel? It sounds like there might be a few issues here. I would suggest opening a support ticket using the link in my signature so we can review to make sure SOA records can be edited. Otherwise, you could contact your host so they can investigate or reach out to us directly. If you open a ticket, please provide the ID here.0 -
Are you in WHM or cPanel? It sounds like there might be a few issues here. I would suggest opening a support ticket using the link in my signature so we can review to make sure SOA records can be edited. Otherwise, you could contact your host so they can investigate or reach out to us directly. If you open a ticket, please provide the ID here.
This is my host I believe. They tell me I can edit DNS in WHM but I cannot insert a new DNS entry. When I press Add Record, the spinner spins and then stops, but no record is inserted. If I add a subdomain all the relevant DNS records are inserted, but the new subdomain never resolves. Somehow they are not managing to connect my server with the domain and they give me no way to edit nameservers in domain settings in client zone(Afrihost) so I think they have a rather funky way of connecting domains to servers that does not work.0 -
@Ben Taylor To confirm, your host told you that you cannot add DNS entries, or are you assuming so since you are unable to? Would your web hosting provider be able to open a support ticket with us so we can review your issues? 0 -
The host Afrihost said that I can now add DNS in WHM. This has taken 2 days to get here, but I still cannot add DNS. I am afraid that the support channel gets answered by multiple people and they don't seem to take into consideration any of the context of the previous replies so its seems like a terrible way of getting help with anything technical. I am setting up a ticket with you now. 0 -
Are you in WHM or cPanel? It sounds like there might be a few issues here. I would suggest opening a support ticket using the link in my signature so we can review to make sure SOA records can be edited. Otherwise, you could contact your host so they can investigate or reach out to us directly. If you open a ticket, please provide the ID here.
The support ticket ID: 943813420 -
Thank you! I am following the ticket and will update this thread once a solution has been reached. 0 -
hi i just solved the same problem you have , the php code i created [CODE=php]private function get_soa_serial($domain) { $dns_server="type dns server here"; // you will need to put your own dns server $dns_query=new DNSQuery($dns_server); $question=$domain; // the domain name to parse $type="SOA"; // the type of record $result=$dns_query->Query($question,$type); // do the query return $result->results[0]->extras["serial">; // serial number }
DNSQuery a class you will find it0
Please sign in to leave a comment.
Comments
16 comments