You can use this as WHMCS or other domain checker to check ability of .bd domains. This is a concept for how to create your own whois server.
WARNING: WHEN YOU USE THIS SCRIPT, YOU KNOW WHAT YOU ARE DOING. I'M NOT RESPONSIVE FOR ANY PROBLEM
First login to your server (Any distro) and install the following dependencies.
apt-get install xinetd dnsutils php-cli