The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help

Discussion in 'General Discussion' started by DHL, Mar 19, 2002.

  1. DHL

    DHL Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I am trying to get my new box setup and am having problems - Can anyone tell me if I've done this correctly or not?

    After reading in WHM news that the server name should not be the same as an account I'm not too sure.

    I set my box up as follows:

    server.mydomain.com IP: 1.1.1.1 (Server IP)
    ns1.mydomain.com - name servers to use for all accounts
    ns2.mydomain.com - name servers to use for all accounts

    I then setup my main domain account zone reads:
    mydomain.com IP: 1.1.1.2
    ns1 IP: 1.1.1.2
    ns2 IP: 1.1.1.3
    server A 1.1.1.1

    Problem, I get the following error:

    IMPORTANT: Do not ignore this email.
    The hostname (server.mydomain.com) resolves to . It should resolve to 1.1.1.1. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.

    Some are all of these problems can be caused by
    /etc/resolv.conf being setup incorrectly. Please check this file if you
    believe everything else is correct.


    You may be able to
    automaticly correct this problem by using the ' Add an A entry for your
    hostname ' under ' Dns Functions ' in your Web Host Manager

    I've done this.


    What should the /etc/resolv.conf read?

    It currently reads this:

    domain darkorb.net
    search darkorb.net
    nameserver 127.0.0.1
    nameserver 66.96.193.2
    nameserver 66.96.194.2

    Please help!! I need it :)

    Regards
    Steve
     
  2. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Does your /etc/hosts file have a line with your server name and IP?

    The email you received... What is the IP in the blank:
    &The hostname (server.mydomain.com) resolves to ____________ .&
     
  3. DHL

    DHL Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    My /etc/hosts reads as follows:-

    127.0.0.1 localhost.localdomain localhost
    #1.1.1.1 (Machine IP commented out) server.mydomain.com server
    1.1.1.2 (Primary name server IP) server.mydomain.com server

    My /etc/resolv.conf I have set as follows

    domain mydomain.com
    search mydomain.com

    nameserver 127.0.0.1
    nameserver 1.1.1.2 (Primary name server for mydomain.com)

    There is no IP displayed in the email warning - It displays the message exactly like this:-

    IMPORTANT: Do not ignore this email.
    The hostname (server.mydomain.com) resolves to . It should resolve to 1.1.1.1 Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.

    Some are all of these problems can be caused by
    /etc/resolv.conf being setup incorrectly. Please check this file if you
    believe everything else is correct.


    I just can't think what else to check. Is the /etc/hosts set correctly? I used my main domains primary name server rather than the machine IP for the IP entry for the server.

    Thanks for your help.

    Regards

    Steve
     
  4. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:207bedabd6]#1.1.1.1 (Machine IP commented out) server.mydomain.com server
    1.1.1.2 (Primary name server IP) server.mydomain.com server[/quote:207bedabd6]Uncomment the line that's currently commented out. The machine IP is what you need.

    You don't need the line that starts with 1.1.1.2 ....
     
  5. DHL

    DHL Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, I did that, uncomment the 1.1.1.1 and removed the second IP 1.1.1.2

    What should the /etc/resolv.conf read?

    I changed it back to this as I wasn't receiving mail alerts,

    domain darkorb.net
    search darkorb.net
    nameserver 127.0.0.1
    nameserver 66.96.193.2
    nameserver 66.96.194.2

    I'm still getting the following error:-

    IMPORTANT: Do not ignore this email.
    The hostname (server.mydomain.com) resolves to . It should resolve to 1.1.1.1 Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.

    Some are all of these problems can be caused by
    /etc/resolv.conf being setup incorrectly. Please check this file if you
    believe everything else is correct.


    You may be able to
    automaticly correct this problem by using the ' Add an A entry for your
    hostname ' under ' Dns Functions ' in your Web Host Manager

    I'm confused.

    Any help is appreciated.

    Steve
     
Loading...

Share This Page