Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I need some clarification about this problem I changed my hostname in /etc/hostname file and in /etc/hosts . Then I restarted with /etc/init.d/hostname.sh start but when I try ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Location
    bg
    Posts
    4

    Problem with hostname


    Hi all,

    I need some clarification about this problem

    I changed my hostname in
    /etc/hostname file and in
    /etc/hosts. Then I restarted with
    /etc/init.d/hostname.sh start

    but when I try
    telnet localhost 25
    I see the old hostname. Why is that?

    I check my hostname with
    hostname -a
    hostname -s
    hostname -f


    It is the new one, but in telnet command I see the old.

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    but when I try
    telnet localhost 25
    I see the old hostname. Why is that?
    Assuming you are running sendmail, look in its configuration file.
    Maybe the old name is there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •