Whoops.
Set domain=query and dom="".

www.whois.az concatenates domain + dom params. Makes whois google.com.az work.