Hi there,
Thanks for your response and sorry for not replying sooner. It turned out our antivirus system had treated the libmdnsd.dylib file as threats and blocked it. After unblocking, everything is back to normal. Not sure why this file was scanned and categorized as a threat. Just want to give you some feedback.
Anyways, thanks again for your help.