title: How to configure localhost on Linux?
body: <p>I'm trying to set up a virtual machine with CentOS 7 to use it as an Oracle Database Server (I'm new to Linux). I have encountered a problem about the host configuration that as I was reading has to be configured previously.</p>
  
  <p>You see, this is where I collide with my knowledge that I have in windows. I thought it was enough to change the device name like this:</p>
  
  <pre><code>[root@localhost.localdomain ~] # hostname SERVER01
  [root@localhost.localdomain ~] # hostname
  SERVER01
  [root @ SERVER01 ~] #
  </code></pre>
  
  <p>And I do not understand why from windows I can not <code>ping</code> the Linux machine only using its hostname (<code>SERVER01</code>)</p>
  
  <pre><code>The ping request could not find host SERVER01. Check the name and
  try again.
  </code></pre>
  
  <p>I understand that the previous configuration of the host in <code>CentOS 7</code> that I am asked to install the database server has to do with the fact that I can not <code>ping</code> it using <code>SERVER01</code>. Although I have to clarify that using the IP if I can.</p>
  
  <p>What do I do to make that change in Linux and can <code>ping</code> only using the hostname as it happens in windows?</p>