Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default editing dns zone manually.

    Hello,
    Can someone guide me to resolve the following problem or guide to the appopriate forum, link or url? Here's what I want to do?

    I have my primary & secondary dns hosted on the cpanel servers all my linux servers use these dns successfully without any problems. I also have a window server with Plesk control panel. I want my windows to use the nameservers that are hosted on the cpanel server. Presently I am adding the zones for the domains that I create on the windows server through whm with the IP of windows server and site starts resolving successfully.

    The problem now starts when any user adds or removes subdomains to the plesk server, the dns on the cpanel server need to be modified manually through whm. I want to automate this process. I found the script "adddns" using which I can add new dns zone successfully from the command line, but I am not able to find the script that is actually used for "Editing" the dns zone. Can anyone please let me know what script is used when "Edit DNS Zone" link is clicked in WHM and what parameters are passed to it?

    I know this sounds quite strange, but the advantage of doing this are :
    1. I will not have to get other nameservers.
    2. I can move the accounts freely across the network.

    Thanks!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    edit zone script is coded into cpanel you can't view it
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Wildcard A record. Then the only time someone would need to manually change the zone is if the specific A record doesn't point to the same IP.

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    Quote Originally Posted by fwwebs
    Wildcard A record. Then the only time someone would need to manually change the zone is if the specific A record doesn't point to the same IP.
    Thanks fwwebs, this can be a better solution, but this would mean that I will have to modify the default zone template, hence the wildcard will get applied even for the domains hosted on the linux servers. Moreover after adding the wildcard even non-existing subdmains would be shown as resolving, for eg. doesnotexist.mydomain.com would even resolve to mydomain.com even when there is no 'doesnotexist' -- will it not?

    I know that when "Edit DNS ZONE" is clicked it internally calls /usr/local/cpanel/whostmgr/bin/whostmgr ./editzone but I dont now what command line pararmeters are to be passed over here.

  5. #5
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    I dont now what command line pararmeters are to be passed over here.
    They're variable, because the zone is rewritten each time, so each record has it's own variables.

Similar Threads & Tags
Similar threads

  1. Editing DNS Zone
    By issu in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-26-2011, 07:18 AM
  2. manually delete a dns zone?
    By LuckDragon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-03-2008, 12:01 PM
  3. Manually changing a DNS Zone
    By grabacontroller in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-14-2006, 01:35 PM
  4. Problem when Editing a DNS Zone
    By Marty in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-13-2002, 09:06 PM
  5. Editing DNS Zone - getting frustrated
    By AlaskanWolf in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-13-2002, 05:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube