Commit Graph

243 Commits

Author SHA1 Message Date
Girish Ramakrishnan
7635482191 Query via unbound
The timeout applies to each server. This resulted in us frequently
getting timeout out when we have more than one name server.
2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
b23001e43f better error log 2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
06c8e8f0cb Query dns in parallel 2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
ce2cd00fbf Fix crash when no MX record is found 2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
87755c6097 ignore errors and continue 2017-02-01 23:38:06 -08:00
Girish Ramakrishnan
73f56efe2c Fix typo 2017-02-01 23:25:13 -08:00
Girish Ramakrishnan
20eaa60a97 clear timeout 2017-02-01 23:20:11 -08:00
Girish Ramakrishnan
b80f0082e9 subdomain -> domain 2017-02-01 23:06:41 -08:00
Girish Ramakrishnan
1ff800a842 Display mx, dmarc, ptr status
Fixes #169
2017-02-01 22:59:06 -08:00
Johannes Zellner
90efb96635 parse mailConfig blob 2017-01-31 16:36:09 -08:00
Johannes Zellner
0b03018a7b Add constant for special 'never' autoupdate pattern 2017-01-26 15:36:24 -08:00
Girish Ramakrishnan
5bff7ebaa1 remove dead comment 2017-01-12 11:46:52 -08:00
Girish Ramakrishnan
b929adf2dd Fix migration 2017-01-10 16:23:01 -08:00
Girish Ramakrishnan
80d65acd0d Set the domain only during dns setup
If we change the domain when dns settings are changed, then migration
fails because we callout to appstore API via the domain (for example,
backup url call will fail because it uses the new domain name).
2017-01-10 16:16:32 -08:00
Johannes Zellner
35404a2832 Return expected dns records also if we hit NXDOMAIN 2017-01-10 15:51:53 +01:00
Johannes Zellner
a20b331095 Convert settings JSON to objects 2017-01-10 15:24:16 +01:00
Johannes Zellner
0a154339e6 Fix the normal case of changing dns provider 2017-01-10 13:15:14 +01:00
Johannes Zellner
1d44d0a987 Remove dns validation code in settings.js 2017-01-10 11:33:33 +01:00
Johannes Zellner
babfb5efbb Make the verifyDnsConfig() api return the valid credentials 2017-01-10 11:32:44 +01:00
Johannes Zellner
684e7df939 At least resolve nameservers for dns settings validator 2017-01-06 11:08:10 +01:00
Johannes Zellner
d9865f9b0f Allow box to startup without fqdn 2017-01-05 14:02:04 +01:00
Johannes Zellner
55fad3d57e Convert booleans for the correct object 2017-01-02 14:15:20 +01:00
Johannes Zellner
424c36ea49 Convert boolean settings values
The db table only stores strings
2017-01-02 13:47:51 +01:00
Johannes Zellner
b26cb4d339 Add dynamic dns settings key 2017-01-02 13:05:48 +01:00
Girish Ramakrishnan
f07e6b29a3 Check for manual DNS provider 2016-12-21 15:10:56 -08:00
Girish Ramakrishnan
ca8b61caba Allow backup encryption key to be set 2016-12-19 12:41:35 -08:00
Girish Ramakrishnan
ec75b14d9e Set timeout for dns queries 2016-12-15 12:00:51 -08:00
Johannes Zellner
eaebf9fd73 Fix typo when comparing dkim values 2016-12-15 16:57:29 +01:00
Johannes Zellner
66a4abeb50 Ensure txtRecords is a valid array
The dns api will respond with undefined if no records are found

Mostly related to https://github.com/tjfontaine/node-dns/issues/95
2016-12-15 16:57:29 +01:00
Johannes Zellner
e7fc40cfdd Minor code style changes 2016-12-15 16:57:29 +01:00
Johannes Zellner
55d306c938 we use single quotes 2016-12-15 16:57:29 +01:00
Johannes Zellner
8fe1f2fef1 Rename email dns records route 2016-12-15 16:57:29 +01:00
Dennis Schwerdel
1065b56380 Check dns records for generic dns providers 2016-12-15 16:57:29 +01:00
Girish Ramakrishnan
855de8565e Allow setting manual dns provider in api 2016-12-14 14:58:08 -08:00
Girish Ramakrishnan
f1ad003b41 Switch dns backend default to manual
Existing cloudrons should be OK because there is no entry in the db
by default for dnsConfig.
2016-12-14 14:56:48 -08:00
Johannes Zellner
b1be65d9ce Add fallback certificate backend 2016-12-05 17:01:23 +01:00
Johannes
e1be8659fa Also validate DNS config for digitalocean backend 2016-10-25 16:18:54 +02:00
Johannes
a23f5d45b0 Improve error feedback when setting Route53 credentials 2016-10-25 16:06:31 +02:00
Johannes
0c6a2008ff Also support noop dns provider in settings backend 2016-10-25 14:55:20 +02:00
Johannes Zellner
2c279dc77e Set LE as default tls config 2016-10-21 10:31:55 -07:00
Johannes Zellner
5d8b46e015 Add more fallbacks for settings 2016-10-21 10:31:30 -07:00
Girish Ramakrishnan
6e8eea6876 Use getBackupConfig instead and allow key to be settable 2016-10-13 15:23:49 -07:00
Johannes Zellner
f9e47ac3c0 Ensure we always keep the backup key 2016-10-11 15:56:07 +02:00
Johannes Zellner
9b4228f373 No need for a separate function 2016-10-11 11:47:33 +02:00
Johannes Zellner
cac85b17bc Add backup config test for each backend 2016-10-11 11:36:25 +02:00
Girish Ramakrishnan
4e3ba4c96f Check type of bucket and prefix as well 2016-10-09 20:17:42 -07:00
Girish Ramakrishnan
131cd96840 allow various provider in backup config 2016-10-09 00:41:24 -07:00
Girish Ramakrishnan
da5e40db66 verify token type 2016-10-09 00:23:23 -07:00
Johannes Zellner
be1cc76006 Also allow digitalocean dns settings to be changed 2016-09-20 09:25:48 +02:00
Girish Ramakrishnan
c1bb264065 Set a timeout for superagent
The default is 'no timeout' and it will wait for the response forever.

https://github.com/visionmedia/superagent/issues/17#issuecomment-207742985
2016-09-12 13:06:18 -07:00