changed getMnethostid() to look for localhost record