title: Error: getaddrinfo ENOTFOUND in post call
body: <p>When I make the request <code>post</code> on page of <code>login</code> I receive this error:</p>
  
  <blockquote>
    <p>Error: getaddrinfo ENOTFOUND bluebirdpages.olk.com</p>
  </blockquote>
  
  <p>But this just happens in <code>production</code> in <code>localhost</code> works, I dont know why..</p>
  
  <p>My code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const express = require('express');
  const bodyParser = require('body-parser');
  const logger = require('morgan');
  const http = require('http');
  const path = require('path');
  
  const app = express();
  
  app.use(logger('dev'));
  
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: false }));
  
  const port = process.env.PORT || 8000;
  
  const server = http.createServer(app);
  
  var options = {
    host: 'bluebirdpages.olk.net/',
    path: '/login',
    method: 'POST'
  }
  
  http.request(options, callback);
  
  app.use(express.static(path.join(__dirname, 'client/build')));
  
  require('./server/routes')(app);
  
  app.get('*', (req, res) =&gt; res.status(200).send({
    message: 'Welcome'
  }));
  
  server.listen(port);
  
  module.exports = app;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Someone know why? and could help me? Please..</p>