Enter your email address:

Delivered by FeedBurner

Changing Hostname Fedora - CentOS


StumbleUpon Toolbar

Once I have a problem with a CentOS server (Could be the same on RedHat based). The HOSTNAME given on the instalation was not the reverse lookup name.

I solved with the help of the linux list, here is how.

I edited the /etc/hosts

[root@ns1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 ns1.somedomain.com ns1 localhost.localdomain localhost

and also make sure that the info on /etc/sysconfig/network is the same.

[root@ns1 ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ns1.somedomain.com

and on the reverse lookup zone, you should have assigned

ns1.somedomain.com to the IP of the Eth in the server you have just configured.

If you do not have this way, your email server could probably not send emails from itself.

hope could be usefull.

Trackback URL for this post:

http://www.go2linux.org/trackback/21
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting