با سلام
ir اضافه کردن که کاری نداره هویز سرور را روی whois.nic.ir قرار بدید و پاسخ را با عبارت No entries found بررسی کنید.این هم نمونه کد از سایت خودم
if (($d_com != '') || ($d_all != '') ) showDomainResult($domainbase.".com",'whois.crsnic.net','No match for');
if (($d_net != '') || ($d_all != '') ) showDomainResult($domainbase.".net",'whois.crsnic.net','No match for');
if (($d_org != '') || ($d_all != '') ) showDomainResult($domainbase.".org",'whois.publicinterestregistry.net','NOT FOUND');
if (($d_info != '') || ($d_all != '') ) showDomainResult($domainbase.".info",'whois.afilias.net','NOT FOUND');
if (($d_ir != '') || ($d_all != '') ) showDomainResult($domainbase.".ir",'whois.nic.ir','No entries found');
if (($d_biz != '') || ($d_all != '') ) showDomainResult($domainbase.".biz",'whois.nic.biz','Not found');
if (($d_coir != '') || ($d_all != '') ) showDomainResult($domainbase.".co.ir",'whois.nic.ir','No entries found');
if (($d_acir != '') || ($d_all != '') ) showDomainResult($domainbase.".ac.ir",'whois.nic.ir','No entries found');
if (($d_orgir != '') || ($d_all != '') ) showDomainResult($domainbase.".org.ir",'whois.nic.ir','No entries found');
if (($d_govir != '') || ($d_all != '') ) showDomainResult($domainbase.".gov.ir",'whois.nic.ir','No entries found');
if (($d_netir != '') || ($d_all != '') ) showDomainResult($domainbase.".net.ir",'whois.nic.ir','No entries found');