title: Error after adding vhost to httpd.conf - centos
body: <p>I added the following text to httpd.conf at the bottom:</p>
  
  <pre><code>&lt;VirtualHost 12.34.56.78.80&gt;
          ServerAdmin     foo@bar.com
          DocumentRoot    /var/www/html/some_dir/
          ServerName      foo-bar.example.com
          ErrorLog        /logs/foo-bar.example.com-error_log
          CustomLog       /logs/foo-bar.example.com-access_log common
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>..and then when attemping to run the following command:</p>
  
  <pre><code>/etc/init.d/httpd restart
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>[error] (EAI 2)Name or service not known: Could not resolve host name 12.34.56.78.80 -- ignoring!
  </code></pre>
  
  <p>Note that names and the ip address have been changed for this post.</p>