creating zones, records and websites using the remoting api

Discussion in 'ISPConfig 3 Priority Support' started by saco721, Aug 1, 2016.

  1. saco721

    saco721 Member HowtoForge Supporter

    I have multiserver setup on debian squeeze with ispconfig 3.0.5.4p8.
    I have found a very good script that accomplishes what I need to do, which is basically create a dns zone and website using the remoting api, but i'm having problems. Basically the DNS zone is being created, but the a record, ns records and mx records are still missing. The site is also being created. If I try to access the site I get :

    But if I delete the newly created client I get :
    I have checked the dns_rr table and 9 records exist for the zone that the script created, but when I try to view the records in ispconfig, they do not appear.
    I have attached the script and hope that someone can help me identify where the problem is. Thank you for your help.
     

    Attached Files:

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely your script sets some parameters wrong. Compare a record that this script created in the database (dns_* tables) with one that you created within ispconfig to see the differences.
     
  3. saco721

    saco721 Member HowtoForge Supporter

    Hi,
    I have managed to get the script to create the client, zones, records and website in ISPConfig but I get the following message when trying to connect to the site :

    I have checked the script parameters against records added from ISPConfig and they appear to be the same, what else can I try?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Has the zonefile been created in the named directory and is is saved without .err ending? You can also use the ispconfig debug mode to see what happens in detail on the server and if a zone gets rejected due to errors.
     
  5. saco721

    saco721 Member HowtoForge Supporter

    Hi Till,
    I have checked the zone file and it has been saved with a .err ending. I have got the following warning while debugging the script :

    Here is the pri.testing.domain.com.err file :
    How do I correct this problem?
     
  6. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Add a dot at the end of ??.domain.com. I.e. testing.domain.com.
     
  7. saco721

    saco721 Member HowtoForge Supporter

    Hi Florian030,

    I have tried concatenating a period at the end of the hostdomain variable in the example script using :

    To get the dot at the end of testing.domain.com and I get :
     
  8. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Your submitted domain is wrong. Maybe you can post your script?
     
  9. saco721

    saco721 Member HowtoForge Supporter

    Hi,
    Here is the script.
    Thanks for your help.
     

    Attached Files:

Share This Page