Hello,
I recently bought a Vps.
I want to know how i create DNS / Child servers for my domain.
Sorry i m new in server world so i think little thing for someone.
Regard.!
Good start by @SoNo__ and good pointer from — here’s a compact, practical checklist to create child nameservers on a WHM/CentOS VPS and fix the “invalid nameserver” validation you saw.
Use hostnames, not URLs. WHM expects plain hostnames like ns1.example.com and ns2.example.com — do NOT include http:// or trailing slashes. The links in your error indicate you probably pasted full URLs, which WHM rejects.
WHM + DNS zone steps:
ns1.yourdomain.com and ns2.yourdomain.com as the server names.ns1 and ns2 pointing to your VPS public IP(s). Example zone lines:ns1 A 1.2.3.4
ns2 A 1.2.3.5 Register (create) the child nameservers (glue) at your domain registrar. In the registrar control panel create host records/child nameservers: ns1.yourdomain.com -> 1.2.3.4 and ns2.yourdomain.com -> 1.2.3.5. After that, set the domain’s nameservers to those hosts.
Verify services and connectivity:
named/BIND is running and port 53 is open (firewall, provider-level filters).service named status # or systemctl status named
netstat -nulp | grep :53 dig @ns1.yourdomain.com yourdomain.com A +short
dig NS yourdomain.com +short Notes and common pitfalls: if you only have one IP you can register both ns1/ns2 to the same IP (not ideal but works); some registrars require separate IPs. If the VPS is behind NAT or your provider blocks inbound port 53, you’ll need provider support. The validation error you saw is almost always caused by wrong format (URLs, extra spaces, or invalid characters) or by missing A/glue records — follow the steps above and the error should disappear.
Jump to Post— ipradip 0if you want to add domain then go to create account and create it as per your requirement and go to cpanel of that account and add subdomain as per your requirement.
hope this is useful for you
Jump to Post— ipradip 0are you using centos or something else?
Jump to Post— ipradip 0and you are using whm isn't it ok then just wait i also using centos so i am trying it myself and post soon hope you can wait.
if you want to add domain then go to create account and create it as per your requirement and go to cpanel of that account and add subdomain as per your requirement.
hope this is useful for you
thanks for reply.
I want to 1 DNS/nameservers for all my domains.
I created NS but when i am going to assign it to my domains
I got this error " {ns2=NameServer ns1.mydomain.com is not a valid Nameserver, ns1=NameServer ns2.mydomain.com is not a valid Nameserver}
I dont know how to fix it.
Please help me :(
thanks.
are you using centos or something else?
Centos..
and you are using whm isn't it ok then just wait i also using centos so i am trying it myself and post soon hope you can wait.
M using WHM but i cant understand and i was done some googling but not found any solution for my problem. :(
so you installed all the packages of centos or it was already ready system if i am able to know that then it help
Packages mean.?
Sorry as i said m new in servers world so...:(
ok then i think you are new for linux too......... centos is linux and all the application in linux are said packages so if you are new for linux then don't hesitate to tell me i will help you certainly.
Thn help me na :(
I m hosted my sites on Vps but u dont find DNS / nameservers for it.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.