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.

Please Help, cann I change resolv.conf so?

Discussion in 'General Discussion' started by MyCpanel, Jan 11, 2005.

  1. MyCpanel

    MyCpanel Member

    Joined:
    Dec 23, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Recently an update was accomplished.
    My WHM and Cpanel Version is now: WHM 9.9.9 cPanel 9.9.9-R14

    If I look at in /etc/resolv.conf, I see there the following

    nameserver 1.2.3.101 (ip from Datacenter)
    nameserver 1.2.3.102 (ip from Datacenter)


    Can I change now easily as follows resolv.conf in such a way? :confused:

    domain mydomain.com
    search mydomain.com
    nameserver 127.0.0.1
    nameserver "ip from ns1.mydomain.com"
    nameserver "ip from ns2.mydomain.com"

    Thanks
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You can change it by editing /etc/resolv.conf and restarting Bind/Named. One difference would be to not use 127.0.0.1 but instead use the main/virtual IP of your server.
     
  3. MyCpanel

    MyCpanel Member

    Joined:
    Dec 23, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Do u mean in such a way?

    domain mydomain.com
    search mydomain.com
    nameserver "main ip from Server"
    nameserver "ip from ns1.mydomain.com"
    nameserver "ip from ns2.mydomain.com"
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Yes and in some cases the first name server may actaully be the main/virtual IP.
     
  5. MyCpanel

    MyCpanel Member

    Joined:
    Dec 23, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    My server situation is so


    My
    Server/Host-name: host.myserver.com
    Main IP is 111.111.111.111

    I have a 4 Reseller Accounts:

    1. Reselleraccount: (it is my)
    myserver.com
    with
    ns1.myserver.com 111.111.111.112
    ns2.myserver.com 111.111.111.113

    2. Reselleraccount:
    resaccount.com
    with
    ns1.resaccount.com 111.111.111.111 (Server Main IP)
    ns2.resaccount.com 111.111.111.114

    3. Reselleraccount:
    resaccount2.com
    with
    ns1.resaccount2.com 111.111.111.115
    ns2.resaccount2.com 111.111.111.116

    ..
    ..

    I have to change forwards shortly of nameserver ip ns1 von resaccount.com.

    What do you mean?

    I do not change it?

    Or how can I make best?

    Thanks for your answers
     
  6. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Just do it the way you described in this post. Sorry if I confused you.
     
  7. MyCpanel

    MyCpanel Member

    Joined:
    Dec 23, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Please Help.

    I got this morning this email.


    IMPORTANT: Do not ignore this email.
    The hostname (host.myserver.com) resolves to 111.111.111.112. It should resolve to 111.111.111.111. 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


    My server situation is so

    Server/Host-name: host.myserver.com
    Main IP is 111.111.111.111

    I have a 4 Reseller Accounts:

    1. Reselleraccount: (it is my)
    myserver.com
    with
    ns1.myserver.com 111.111.111.112
    ns2.myserver.com 111.111.111.113

    2. Reselleraccount (Customer account):
    resaccount.com
    with
    ns1.resaccount.com 111.111.111.111 (Server Main IP)
    ns2.resaccount.com 111.111.111.114





    How can I solve this problem?

    Does it have this IP address „111.111.111.111“ ns1 of the server?

    Can I solve it e.g. in such a way?
    I change nameserver ip ns1.resaccount.com to another IP, and following I make this MAIN IP 111.111.111.111 to a ns3.myserver.com

    Would that be clean solution?
    .
     
Loading...

Share This Page