Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7537487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:51:55+00:00 2026-05-30T06:51:55+00:00

I recently bought a vps server with DirectAdmin installed on it. everything works fine

  • 0

I recently bought a vps server with DirectAdmin installed on it. everything works fine except I can’t send emails.
the DirectAdmin’s messaging system issued this notification:

Cannot find your hostname using the command ‘/bin/hostname –fqdn’. Please check this >command to ensure it works properly.
If you get the error:
hostname: Name or service not known

Check your /etc/resolv.conf and try setting it to use 127.0.0.1Unable to resolve your >hostname, . This will cause major issues when sending email.

Solution:

Create an A record for your hostname (.) in your DNS control panel. Point the hostname to >your server’s main IP address. Also check /etc/hosts to ensure that the server ip is >correctly set.

my /etc/hosts contains this:

# Do not remove the following line, or various programs  
# that require network functionality will fail.  
127.0.0.1   localhost.localdomain localhost  
127.0.1.1   srvubu100.screweb.com   srvubu100      ::1     localhost ip6-localhost   ip6-loopback fe00::0 ip6-localnet   ff00::0 ip6-mcastprefix ff02::1   ip6-allnodes ff02::2 ip6-allrouters  

178.162.145.82      srv771.screweb.com  
178.162.145.82      srv771.bitcommand.com  
178.162.145.82      server1.novinhost.net  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:51:57+00:00Added an answer on May 30, 2026 at 6:51 am

    You should set a hostname using the script /usr/local/directadmin/scripts/hostname.sh like this:

    /usr/local/directadmin/scripts/hostname.sh host.yourdomain.com
    

    Then you should edit your /etc/hosts file and leave it like this:

    127.0.0.1 localhost.localdomain localhost
    ::1 localhost ip6-localhost
    
    178.162.145.82 host.yourdomain.com
    

    Then restart your exim (service exim restart) and it should work ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently bought a new web server 2008 for our company and require a
I have recently bought VPS hosting and I assume, that it has problem with
I've recently bought a new computer, installed XCode 4 on it (which comes with
Having recently bought a Windows Phone I can say the one feature I sorely
I have WordPress blog on server {IP}/blog. Recently I've bought 2 domains and configured
So here is the problem: Recently someone bought a new PC for server to
We recently bought a new rack and set of servers for it, we want
I recently bought and read a box set of books on security ( Building
I recently bought Bob's book Delphi XML, SOAP & Web Services in page 85
I've recently bought myself a new cellphone, running Windows Mobile 6.1 Professional. And of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.