Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

Can I add DNS record via API

Questions regarding the API
Application Programming Interface
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
become
Posts: 5
Joined: Thu Mar 23, 2017 6:44 pm

Can I add DNS record via API
  • Quote

Post by become » Mon Dec 11, 2017 11:02 am

I have DNS for domain.com

Can I add new DNS entry for this domain via API call ?? How ?
Top

Phogo
Posts: 60
Joined: Fri Dec 09, 2016 12:40 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Can I add DNS record via API
  • Quote

Post by Phogo » Mon Dec 11, 2017 11:36 am

yes, you should be able to do this via the API, see the following example https://vestacp.com/docs/api/#add_domain
Top

vanderheyde
Posts: 35
Joined: Fri Dec 08, 2017 3:48 pm

Os: Debian 7x
Web: apache + nginx
Re: Can I add DNS record via API
  • Quote

Post by vanderheyde » Mon Dec 11, 2017 3:11 pm

There is no pre-made config for that (as shown in the examples).

However, there exists a script for it (v-add-dns-record is the one, i think), which you can call in the same way as the examples. The full list is in /usr/local/vesta/bin/
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password