Closed samuelvincent closed 7 years ago
No idea, maybe attach your hosts file. Btw you don't want to remove the default entries from your hosts file.
I am having a similar issue
IP addresses and hostnames added to the Hosts Preferences Pane disappear after pressing the enter button or clicking on another field. Furthermore, new entries appear in the hosts file as "(null)".
Furthermore, this (null) entry crashes Hosts Preferences Pane when it loads again.
Parse error
In /private/etc/hosts on line:12 null)
syntax error, unexpected HOSTNAME, expecting END or COMMENT or ADDRESS or NEWLINE
Should this line be permanently removed from /private/etc/hosts? Choose no to quit Hosts and manually correct the error.
Yes / No
Maybe you could attach your hosts file. It could be the file has strange non unicode characters in it. Also have you got administrator rights on the box you installed hosts on.
Moreover when you close system preferences, and then reopen have you got the same issues?
What os version are you on?
It seems that you get very strange behaviour if you hosts can not obtain authorization for editing the hosts file. #16
hi! on different systems, each time that i open prefpane and add or edit an entry i have this error message:
"syntax error, unexpected HOSTNAME, expecting END or COMMENT or ADDRESS or NEWLINE Should this line be permanently removed from /private/etc/hosts? Choose no to quit Hosts and manually correct the error."
what is the problem? if i erase my host file and redo, i have the same error message...