Subdomain configuration

#1
Due to accidental erase of some critical system files, we recently did re-install of our container. After re-install we lost cpanel access.

We were able to configure our server back with direct SSH access. But when it came to configuring sub domains I am having problems. I installed bind-chroot package so that chroot jailed named server is running on our server.

I setup zone files in /var/named/chroot/var/named directory. On the server itself when we test the subdomains(using following command) I get proper response.

>host subdomain.domain.com

But when I try the same test from my remote machine I get following error.

Host subdomain.domain.com not found: 3(NXDOMAIN)

www, ftp and mail subdomains are working fine. But the new subdomains I added are not working.
Any pointers??
 
Top