[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

localhost.localdomain



Howdy...

is there a reason that the default entry for 127.0.0.1 in /etc/hosts
reads "127.0.0.1 localhost.localdomain localhost"? This has hit me
several times and is especially problematic when accessing a MySQL
database locally. MySQL quickly complains like this:

..warning: connect to mysql server foobar: Access denied for user
'whoever'@'localhost.localdomain' (using password: YES)

because it expected to resolve 127.0.0.1 to the name "localhost".

Shouldn't it just be "127.0.0.1 localhost"? Or at most 
"127.0.0.1 localhost localhost.$myrealdomain"?

Or should it rather be replaced during the installer's network base
configuration or the `base-config`? Or is the user supposed to change
"localdomain" to the real domain after the installation? Few people
actually seem to do that. :)

Regards
 Christoph
-- 
~
~
~
".signature" [Modified] 3 lines --100%--                3,41         All



Reply to: