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.

Edit DNS Zone PHP Script

Discussion in 'Bind / DNS / Nameserver Issues' started by zerutreck, Oct 11, 2006.

  1. zerutreck

    zerutreck Member

    Joined:
    Oct 9, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Somebody has php script for edit dns zone?

    scripts/editzone?domain=

    Best regards,

    Hermes
     
  2. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    this is exactly what I'm looking for.

    I'm not sure what you want todo with it, but my needs are simple, to update the DNS records for a certain dynamic domain, which I have setup on dyndns.org. My broadband router only supports www.dyndns.org, and I would like to host a temp server @ home, but access it from one of my subdomains.
     
  3. P1800

    P1800 Member

    Joined:
    Jan 10, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Hello.

    i am looking also for a php script to edit DNS zones, but where can i find it?

    thanks for any help.

    P1800 :)
     
  4. zerutreck

    zerutreck Member

    Joined:
    Oct 9, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    You he found?

    P1800 I also am looking this. You he found? Somebody can help?
     
  5. mr2jzgte

    mr2jzgte Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Florida
  6. rjf1505

    rjf1505 Member

    Joined:
    Apr 16, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have had problems getting this script working.

    See also my post http://forums.cpanel.net/showthread.php?t=65722 on getting SMBIND working. The problem i have is that it can work on cpanel machines if the group named has write access to the zone databases.

    When changing the permissions from read to write cpanel resets them back to read after cpanel it self does a modification to the dnsserver like adding a zone.

    My question is if this resetting can be stopped and what kind of script does the resetting of permissions.

    Thx
    Robert-Jan
     
  7. MACscr

    MACscr Well-Known Member

    Joined:
    Sep 30, 2003
    Messages:
    190
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I know this is an old post, but the title is still relevant. Did anyone ever figure out a way to do this? I havent seen anything in the cpanel api for editing dns zones. I basically want to be able to create a script for updating A records for dyndns purposes.
     
  8. amaltemara

    amaltemara Member

    Joined:
    Dec 7, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    me 2

    I also would like this script... It would be good to be able to integrate it into cpanel as well, so that my clients can set their domain as dynamically updatable, and specify / get a secret key to use on their end to authenticate them...
     
  9. rrwh

    rrwh Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    You are looking in the wrong place....

    The solution to this problem is trivial - use nsupdate and write a simple php interface to do the task using exec or passthru

    a few lines of php and a few lines of config.

    None of this is a cpanel issue at all.
     
Loading...

Share This Page