Skip to main content

Error: The “serial” argument cannot be empty - when adding TXT record to DNS zone

Comments

16 comments

  • quietFinn
    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
  • andrew.n
    and is it empty? the SOA value?
    0
  • Ben Taylor
    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
  • andrew.n
    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
  • Ben Taylor
    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
  • andrew.n
    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
  • Ben Taylor
    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
  • quietFinn
    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
  • Ben Taylor
    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
  • cPanelAnthony
    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
  • Ben Taylor
    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
  • cPanelAnthony
    @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
  • Ben Taylor
    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
  • Ben Taylor
    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: 94381342
    0
  • cPanelAnthony
    Thank you! I am following the ticket and will update this thread once a solution has been reached.
    0
  • simokhounti
    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 it
    0

Please sign in to leave a comment.