ProWebUK said:did you su - to root?
Under the login you are using ensure you can modify files such as /etc/hosts and /etc/sysconfig/network (they are the 2 main files involved with chnaging the hostname.)
Chis
i was able to modify them.
should my hosts file have the following in it?
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
-E, --extended-regexp PATTERN is an extended regular expression
-F, --fixed-strings PATTERN is a set of newline-separated strings
-G, --basic-regexp PATTERN is a basic regular expression
-P, --perl-regexp PATTERN is a Perl regular expression
-e, --regexp=PATTERN use PATTERN as a regular expression
-f, --file=FILE obtain PATTERN from FILE
-i, --ignore-case ignore case distinctions
-w, --word-regexp force PATTERN to match only whole words
-x, --line-regexp force PATTERN to match only whole lines
-z, --null-data a data line ends in 0 byte, not newline
and when i put 'server' as a subdomain for 'server.main.com', should i 'A' it to 127.0.0.1 or the server ip?
and i also just got this message from direct admin..
Subject: This is e-mail notification to warn you that your hostname is setup improperly on your system.
Your hostname, main.com, and the servername you have set in DirectAdmin, server.main.com, do not match. It is recommended that these two values are the same.
Solution:
Either change the servername in DirectAdmin or run the 'hostname.sh' script via ssh to change your hostname
Last edited: