i was into a mess by accidentally deleting /etc/named.conf in my dedicated server running centos 5. Sooner i did that all my sites went down. I was in a terrible situation.

For those of you who did that i am documenting here how to restore the file!

Go to Cpanel WHM > Configuration file rolleback > /etc/named.conf

Manually go back and you would see the file backup and click restore. Thats how i fixed.

There are other ways like

/scripts/rebuildnamedconf

but that didnt fix my problem!