Commit graph

70 commits

Author SHA1 Message Date
Maël GRAMAIN f68f3bd946 Bump dependencies 2022-06-05 15:28:07 -04:00
Mael GRAMAIN 4f23676f89 Fix buffer signal.Notify (SCC-SA1017) 2021-02-25 17:35:30 -04:00
Mael GRAMAIN dcd5da2cfb Listen in TCP & UDP. 2021-02-25 17:26:52 -04:00
Maël 8e5bf6ebdb
Merge pull request #14 from outout14/axfr-support
CORS
2021-01-17 18:13:55 -04:00
Mael GRAMAIN 8744a7e5df AllowedOrigins []strings option in the configuration file for the API
The App{} struct have been updated to parse a new argument for the API configuration file.

AllowedOrigins permit the user to set what URLs are allowed to send request to the API via CORS headers.
2021-01-17 18:12:29 -04:00
Mael GRAMAIN 3aa2cd4984 README update 2021-01-16 21:09:07 -04:00
Maël cf1f7e2ee4
Merge pull request #12 from outout14/axfr-support
Axfr support
2021-01-16 15:17:27 -04:00
Mael GRAMAIN d071c8e6e2 Fix SCC-SA4006 (Deepsource) with Debugging for GetSoa() in the AXFR func 2021-01-16 15:16:53 -04:00
Mael GRAMAIN 1ec2b3c5a2 XFR is now limited to certains IP configured in the config file
https://github.com/outout14/sacrebleu-dns/issues/11
https://github.com/outout14/sacrebleu-dns/issues/11#issuecomment-753423572
2021-01-03 15:57:06 -04:00
Mael GRAMAIN 384ca40434 New parameters in the config file 2021-01-03 15:17:01 -04:00
Mael GRAMAIN 78744ea1ac AXFR support
#11
2021-01-01 22:34:54 -04:00
Mael G. d1b9dba472 Using sqlMigrate from sacrebleu-api 2020-12-27 22:58:20 -04:00
Mael G. 1b00ac0528 Clarification of config example
Since the SQL database port is 3306, the type should be set as "mysql".
2020-12-27 21:18:01 -04:00
Mael G. 1cf5c4f3d5 Using api structs for the Records 2020-12-27 20:34:26 -04:00
Mael G. e05cab9d5e Multiple records support 2020-12-27 19:05:16 -04:00
Maël a1cd3ea5a1
Merge pull request #6 from outout14/deepsource-transform-f033f2c5
Format code with gofmt
2020-12-26 12:09:57 -04:00
Maël 6f8f0ce7d6
Merge pull request #8 from luclu7/add-socket-support
Add socket support
2020-12-26 12:08:53 -04:00
Luclu7 15910ae7a2
updated README.md 2020-12-25 03:16:09 +01:00
Luclu7 44f07ca2a2
add support for sockets (mostly clarification) 2020-12-25 03:06:20 +01:00
Luclu7 f95ab468b3
add built binary to gitignore 2020-12-25 02:33:41 +01:00
Luclu7 8220eacb10
config: fixed app_mode
also changed like Ip to IP and Db to DB
2020-12-25 02:31:28 +01:00
deepsource-autofix[bot] 2359e07146
Format code with gofmt
This commit fixes the style issues introduced in e9e84ea according to the output
from gofmt.

Details: https://deepsource.io/gh/outout14/sacrebleu-dns/transform/67d36107-8c80-4374-8608-5a30493582d4/
2020-12-24 01:45:10 +00:00
Maël e9e84ea076
Merge pull request #5 from luclu7/patch-2
defaults to ./config.ini
2020-12-23 21:45:00 -04:00
Luclu7 20ed884d05
defaults to ./config.ini
not the best option but it's at least better
2020-12-24 01:08:32 +01:00
Mael G. aed754d74c Badges on readme 2020-12-22 21:41:20 -04:00
Mael G. deb28bbff9 GORM logging level is now based on the AppMode configuration 2020-12-22 21:36:41 -04:00
Mael G. 0b6b6d977c Simplify returning boolean expression 2020-12-22 21:30:32 -04:00
Mael G. 607dc95b5a Port double dots is now hard written in the code 2020-12-22 21:26:39 -04:00
Mael G. 23bbef688b Updated readme 2020-12-22 21:25:23 -04:00
Mael G. 506e0d8422 Using the default DNS port as default in configuration file 2020-12-22 21:02:13 -04:00
Mael G. eeea8c17b7 SQL database migration command 2020-12-22 21:01:18 -04:00
Mael G. 3737e17ecf Switched sql funcs returns from int to bool 2020-12-22 20:20:06 -04:00
Mael G. 02ee609cc4 Readme updated
Informations updated
2020-12-22 20:12:08 -04:00
Mael G. 319f1abb2c Merge remote-tracking branch 'origin/main' into main 2020-12-22 20:11:13 -04:00
Maël 235e1605e9
Merge pull request #2 from luclu7/patch-1
Fix readme.md
2020-12-22 20:10:04 -04:00
Mael G. 4a14ad594b Switching from database/sql to GORM 2020-12-22 20:09:10 -04:00
Luclu7 55be51c41c
fixed readme
REDIS => Redis
2020-12-22 20:21:18 +01:00
Mael G. 43e8ab8210 PostgreSQL Support
Implementation of PostgreSQL database engine in the DNS server using jackc/pgx (as database/sql driver). 
The user can select what database type he want in the config.ini file under the database section.
2020-12-22 14:56:54 -04:00
Mael G. efffac8b0a Refactoring of some vars and funcs name
Theses change breaks old configuration files but make the code readability better thanks to VSCode plugins.
2020-12-21 23:12:02 -04:00
Maël 7cf1ae926b
Merge pull request #1 from fossabot/add-license-scan-badge
Add license scan report and status
2020-12-15 17:35:13 -04:00
fossabot 9a6daa346e Add license scan report and status
Signed off by: fossabot <badges@fossa.com>
2020-12-14 14:29:30 -08:00
Mael G. 98537616c8 Commenting 2020-12-14 18:20:24 -04:00
Mael G. 3459498605 Renamed the default DB name 2020-12-14 18:20:14 -04:00
Mael G. e70571c450 Better SqlTest() function 2020-12-13 21:15:43 -04:00
Mael G. 61d6d47637 Unused code removed 2020-12-13 21:06:29 -04:00
Mael G. de3bcdd7fc Service file 2020-12-13 21:05:00 -04:00
Mael G. 44147b07f2 Configuration file patch is dynamic 2020-12-13 21:04:29 -04:00
Mael G. c858b1b5e1 test sql connexion before launch 2020-12-13 20:58:01 -04:00
Mael G. 3f7fa58fd6 Github renamed master branch to main... 2020-12-13 20:22:11 -04:00
Mael G. 9be5aa8718 Updated makefile 2020-12-13 20:21:07 -04:00