Fixed mixed-up LOCALHOST and LOCALDOMAIN functions.