I went to Main >> Server Configuration >> Basic cPanel & WHM Setup and correctly assigned the IPs to my 2 custom nameservers. After that (on same screen) I created A records also for the nameservers, and finally clicked on "Save Changes".
However when I go to Main >> Networking Setup >> Nameserver IPs, the 2 nameservers are shown, but under IP Address field, the value shown is "No IP".
What do I do to ensure that IPs are correctly assigned to my nameservers?
You will need to register your name servers with the domain registrar. This creates so-called "glue records", which will then show up in your domain registration details. Some domain registrars will require a working DNS setup for the domain before they activate the glue records, so all your preparations so far are correct, you just need to make the final step.
Once the domain updates have propagated around the world, name resolution for your domain should work.
You should edit the following file:
Once you have added the correct entries, which are in the format
you should then load the Nameserver IPs option in WHM, these should then show up with IPs.