WebFaction
Community site: login faq

I can create a DNS TXT record using the control panel but I can't find how to do it using the API;

the API documentation gives the template, "create_dns_override(session_id, domain, a_ip='', cname='', mx_name='', mx_priority='', spf_record='')"

allowing me to create an SPF record but apparently no way to create a TXT record.

asked 13 Apr '13, 01:13

atherton
519
accept rate: 0%


The API seems to be failing for

create_dns_override()

and also won't allow a txt record to be stored unless it is in the spf format. We have created an internal tracking ticket for our development team to address this. Normally your code should function, you would define it as the spf_record since they are technically the same record. Once the bug has been addressed it should function again.

Edit: we've just fixed the API so that you can create TXT records. Just specify the domain name and use the positional argument for SPF records for your TXT record, eg:

server.create_dns_override(session_id, 'domain.com', '', '', '', '', 'your txt record here')
permanent link

answered 13 Apr '13, 19:28

johns
5.4k312
accept rate: 23%

edited 23 Apr '13, 12:31

seanf
12.2k42136

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×104
×75
×2

question asked: 13 Apr '13, 01:13

question was seen: 2,599 times

last updated: 23 Apr '13, 12:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM