-
-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathswagger.yaml
More file actions
2039 lines (1910 loc) · 64.8 KB
/
swagger.yaml
File metadata and controls
2039 lines (1910 loc) · 64.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: Networking Toolbox API
description: |
**Comprehensive networking toolbox API** providing advanced IP address, subnet, CIDR, DNS, and DNSSEC utilities.
## Features
- **IPv4/IPv6 Subnet Calculations** - Complete subnet analysis and VLSM
- **CIDR Operations** - Split, merge, compare, and manipulate CIDR blocks
- **IP Address Tools** - Validation, conversion, distance calculation, enumeration
- **DNS Utilities** - Record validation, PTR generation, reverse zones
- **DNSSEC Tools** - Key management, signature validation, DS record generation
- **Advanced Networking** - Wildcard masks, EUI-64, ULA generation
## Categories
- **Subnetting** (5 endpoints) - IPv4/IPv6 subnet calculations and VLSM
- **CIDR** (10 endpoints) - CIDR manipulation and analysis
- **IP Address Convertor** (8 endpoints) - IP validation and format conversion
- **DNS** (36 endpoints) - Comprehensive DNS and DNSSEC tooling
## Quick Start
All endpoints accept JSON payloads via POST requests and return structured JSON responses with comprehensive error handling.
version: 1.0.0
contact:
name: Networking Toolbox Support
url: https://github.com/Lissy93/networking-toolbox
license:
name: MIT
url: https://opensource.org/licenses/MIT
servers:
- url: http://localhost:5173
description: Local development server
- url: https://networking-toolbox.as93.net
description: Production server
tags:
- name: Overview
description: API overview and information
- name: Subnetting
description: Subnet calculation tools for IPv4 and IPv6
- name: CIDR
description: CIDR notation conversion and manipulation tools
- name: IP Address Convertor
description: IP address validation and conversion tools
- name: DNS
description: DNS record validation and zone management tools
paths:
# ============= OVERVIEW =============
/api:
get:
tags: [Overview]
summary: Get API Overview
description: Returns comprehensive information about all available API endpoints, categories, and usage examples
operationId: getApiOverview
responses:
'200':
description: API overview retrieved successfully
content:
application/json:
schema: { $ref: '#/components/schemas/ApiOverview' }
# ============= SUBNETTING =============
/api/subnetting/ipv4-subnet-calculator:
post:
tags: [Subnetting]
summary: Calculate IPv4 Subnet
description: Calculate comprehensive IPv4 subnet information including network, broadcast, hosts, and class
operationId: calculateIPv4Subnet
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr]
properties:
cidr: { type: string, pattern: '^(?:[0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}$', example: '192.168.1.0/24' }
responses:
'200':
description: Subnet calculation successful
content:
application/json:
schema: { $ref: '#/components/schemas/SubnetResult' }
'400': { $ref: '#/components/responses/ValidationError' }
'500': { $ref: '#/components/responses/ServerError' }
/api/subnetting/ipv6-subnet-calculator:
post:
tags: [Subnetting]
summary: Calculate IPv6 Subnet
description: Calculate comprehensive IPv6 subnet information and address allocation
operationId: calculateIPv6Subnet
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr]
properties:
cidr: { type: string, example: '2001:db8::/32' }
responses:
'200':
description: IPv6 subnet calculation successful
content:
application/json:
schema: { $ref: '#/components/schemas/IPv6SubnetResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/subnetting/vlsm-calculator:
post:
tags: [Subnetting]
summary: VLSM Calculator
description: Variable Length Subnet Masking calculator for efficient IP allocation
operationId: calculateVLSM
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [network, requirements]
properties:
network: { type: string, example: '192.168.0.0/24' }
requirements: { type: array, items: { type: integer }, example: [100, 50, 25] }
responses:
'200':
description: VLSM calculation successful
content:
application/json:
schema: { $ref: '#/components/schemas/VLSMResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/subnetting/supernet-calculator:
post:
tags: [Subnetting]
summary: Supernet Calculator
description: Calculate supernet (route summarization) for multiple networks
operationId: calculateSupernet
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [networks]
properties:
networks: { type: array, items: { type: string }, example: ['192.168.1.0/24', '192.168.2.0/24'] }
responses:
'200':
description: Supernet calculation successful
content:
application/json:
schema: { $ref: '#/components/schemas/SupernetResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/subnetting/next-available:
post:
tags: [Subnetting]
summary: Find Next Available Subnet
description: Find next available subnet within a larger network
operationId: findNextAvailable
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [network, size]
properties:
network: { type: string, example: '10.0.0.0/8' }
size: { type: integer, example: 24 }
exclude: { type: array, items: { type: string }, example: ['10.0.1.0/24'] }
responses:
'200':
description: Next available subnet found
content:
application/json:
schema: { $ref: '#/components/schemas/NextAvailableResult' }
'400': { $ref: '#/components/responses/ValidationError' }
# ============= CIDR =============
/api/cidr/cidr-to-subnet-mask:
post:
tags: [CIDR]
summary: CIDR to Subnet Mask
description: Convert CIDR notation to subnet mask format
operationId: cidrToSubnetMask
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr]
properties:
cidr: { type: string, example: '192.168.1.0/24' }
responses:
'200':
description: Conversion successful
content:
application/json:
schema: { $ref: '#/components/schemas/MaskConversionResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/cidr/subnet-mask-to-cidr:
post:
tags: [CIDR]
summary: Subnet Mask to CIDR
description: Convert subnet mask to CIDR notation
operationId: subnetMaskToCidr
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [mask]
properties:
mask: { type: string, example: '255.255.255.0' }
responses:
'200':
description: Conversion successful
content:
application/json:
schema: { $ref: '#/components/schemas/MaskConversionResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/cidr/split:
post:
tags: [CIDR]
summary: Split CIDR Block
description: Split a CIDR block into smaller subnets
operationId: splitCidr
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr]
properties:
cidr: { type: string, example: '192.168.0.0/22' }
count: { type: integer, example: 4 }
prefix: { type: integer, example: 24 }
responses:
'200':
description: CIDR split successful
content:
application/json:
schema: { $ref: '#/components/schemas/CidrSplitResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/cidr/deaggregate:
post:
tags: [CIDR]
summary: Deaggregate CIDR
description: Break down CIDR blocks into component subnets
operationId: deaggregateCidr
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr]
properties:
cidr: { type: string, example: '10.0.0.0/22' }
targetPrefix: { type: integer, example: 24 }
responses:
'200':
description: Deaggregation successful
content:
application/json:
schema: { $ref: '#/components/schemas/DeaggregateResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/cidr/compare:
post:
tags: [CIDR]
summary: Compare CIDR Blocks
description: Compare two CIDR blocks for overlap, containment, and adjacency
operationId: compareCidr
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr1, cidr2]
properties:
cidr1: { type: string, example: '192.168.1.0/24' }
cidr2: { type: string, example: '192.168.0.0/23' }
responses:
'200':
description: Comparison completed
content:
application/json:
schema: { $ref: '#/components/schemas/CidrCompareResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/cidr/wildcard-mask:
post:
tags: [CIDR]
summary: Wildcard Mask Converter
description: Convert between subnet masks and wildcard masks
operationId: convertWildcardMask
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
mask: { type: string, example: '255.255.255.0' }
wildcard: { type: string, example: '0.0.0.255' }
cidr: { type: string, example: '192.168.1.0/24' }
responses:
'200':
description: Wildcard conversion successful
content:
application/json:
schema: { $ref: '#/components/schemas/WildcardMaskResult' }
'400': { $ref: '#/components/responses/ValidationError' }
# ============= IP ADDRESS CONVERTOR =============
/api/ip-address-convertor/validator:
post:
tags: [IP Address Convertor]
summary: IP Address Validator
description: Validate IPv4 and IPv6 addresses with detailed analysis
operationId: validateIpAddress
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [ip]
properties:
ip: { type: string, example: '192.168.1.1' }
strict: { type: boolean, default: false }
responses:
'200':
description: Validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/IpValidationResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/normalize:
post:
tags: [IP Address Convertor]
summary: Normalize IPv6 Addresses
description: Normalize and standardize IPv6 address formats
operationId: normalizeIpv6
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [addresses]
properties:
addresses: { type: array, items: { type: string }, example: ['2001:db8::1', '2001:0db8:0000:0000:0000:0000:0000:0001'] }
responses:
'200':
description: Normalization successful
content:
application/json:
schema: { $ref: '#/components/schemas/NormalizeResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/nth-ip:
post:
tags: [IP Address Convertor]
summary: Calculate Nth IP
description: Calculate the nth IP address in a network range
operationId: calculateNthIp
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [input]
properties:
input: { type: string, example: '192.168.1.0/24\n10' }
responses:
'200':
description: Nth IP calculated
content:
application/json:
schema: { $ref: '#/components/schemas/NthIpResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/regex-validator:
post:
tags: [IP Address Convertor]
summary: IP Regex Generator & Validator
description: Generate and validate regex patterns for IP addresses
operationId: generateIpRegex
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
regexType: { type: string, enum: [ipv4, ipv6, both], default: both }
mode: { type: string, enum: [standard, strict, loose], default: standard }
testInput: { type: string, example: '192.168.1.1' }
responses:
'200':
description: Regex generated/validated
content:
application/json:
schema: { $ref: '#/components/schemas/RegexResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/ipv4-to-ipv6:
post:
tags: [IP Address Convertor]
summary: IPv4 to IPv6 Converter
description: Convert IPv4 addresses to IPv6 format (IPv4-mapped IPv6)
operationId: ipv4ToIpv6
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [ipv4]
properties:
ipv4: { type: string, example: '192.168.1.1' }
responses:
'200':
description: Conversion successful
content:
application/json:
schema: { $ref: '#/components/schemas/IpConversionResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/ipv6-to-ipv4:
post:
tags: [IP Address Convertor]
summary: IPv6 to IPv4 Converter
description: Extract IPv4 from IPv4-mapped IPv6 addresses
operationId: ipv6ToIpv4
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [ipv6]
properties:
ipv6: { type: string, example: '::ffff:192.168.1.1' }
responses:
'200':
description: Conversion successful
content:
application/json:
schema: { $ref: '#/components/schemas/IpConversionResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/ipv6-compress:
post:
tags: [IP Address Convertor]
summary: Compress IPv6 Address
description: Compress IPv6 addresses to shortest form
operationId: compressIpv6
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [ipv6]
properties:
ipv6: { type: string, example: '2001:0db8:0000:0000:0000:0000:0000:0001' }
responses:
'200':
description: Compression successful
content:
application/json:
schema: { $ref: '#/components/schemas/IPv6FormatResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/ipv6-expand:
post:
tags: [IP Address Convertor]
summary: Expand IPv6 Address
description: Expand IPv6 addresses to full form
operationId: expandIpv6
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [ipv6]
properties:
ipv6: { type: string, example: '2001:db8::1' }
responses:
'200':
description: Expansion successful
content:
application/json:
schema: { $ref: '#/components/schemas/IPv6FormatResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/ula-generator:
post:
tags: [IP Address Convertor]
summary: ULA Generator
description: Generate Unique Local Address (ULA) IPv6 prefixes
operationId: generateUla
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
count: { type: integer, default: 1, minimum: 1, maximum: 100 }
responses:
'200':
description: ULA addresses generated
content:
application/json:
schema: { $ref: '#/components/schemas/UlaResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/ip-address-convertor/zone-id:
post:
tags: [IP Address Convertor]
summary: IPv6 Zone ID Processor
description: Process IPv6 addresses with zone identifiers
operationId: processZoneId
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [ipv6]
properties:
ipv6: { type: string, example: 'fe80::1%eth0' }
responses:
'200':
description: Zone ID processed
content:
application/json:
schema: { $ref: '#/components/schemas/ZoneIdResult' }
'400': { $ref: '#/components/responses/ValidationError' }
# ============= DNS - Record Validation =============
/api/dns/validate-a-record:
post:
tags: [DNS]
summary: Validate A Record
description: Validate DNS A record format and content
operationId: validateARecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [record]
properties:
record: { type: string, example: 'example.com. 3600 IN A 192.168.1.1' }
responses:
'200':
description: A record validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DnsRecordValidation' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-aaaa-record:
post:
tags: [DNS]
summary: Validate AAAA Record
description: Validate DNS AAAA record format and IPv6 address
operationId: validateAAAARecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [record]
properties:
record: { type: string, example: 'example.com. 3600 IN AAAA 2001:db8::1' }
responses:
'200':
description: AAAA record validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DnsRecordValidation' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-cname-record:
post:
tags: [DNS]
summary: Validate CNAME Record
description: Validate DNS CNAME record format and target
operationId: validateCnameRecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [record]
properties:
record: { type: string, example: 'www.example.com. 3600 IN CNAME example.com.' }
responses:
'200':
description: CNAME record validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DnsRecordValidation' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-mx-record:
post:
tags: [DNS]
summary: Validate MX Record
description: Validate DNS MX record format, priority, and mail server
operationId: validateMxRecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [record]
properties:
record: { type: string, example: 'example.com. 3600 IN MX 10 mail.example.com.' }
responses:
'200':
description: MX record validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DnsRecordValidation' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-txt-record:
post:
tags: [DNS]
summary: Validate TXT Record
description: Validate DNS TXT record format and content
operationId: validateTxtRecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [record]
properties:
record: { type: string, example: 'example.com. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"' }
responses:
'200':
description: TXT record validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DnsRecordValidation' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-srv-record:
post:
tags: [DNS]
summary: Validate SRV Record
description: Validate DNS SRV record format, priority, weight, and port
operationId: validateSrvRecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [record]
properties:
record: { type: string, example: '_sip._tcp.example.com. 3600 IN SRV 10 5 5060 sip.example.com.' }
responses:
'200':
description: SRV record validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DnsRecordValidation' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-caa-record:
post:
tags: [DNS]
summary: Validate CAA Record
description: Validate DNS CAA record for certificate authority authorization
operationId: validateCaaRecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [record]
properties:
record: { type: string, example: 'example.com. 3600 IN CAA 0 issue "letsencrypt.org"' }
responses:
'200':
description: CAA record validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DnsRecordValidation' }
'400': { $ref: '#/components/responses/ValidationError' }
# ============= DNS - DNSSEC =============
/api/dns/parse-dnskey:
post:
tags: [DNS]
summary: Parse DNSKEY Record
description: Parse and analyze DNSSEC DNSKEY records
operationId: parseDnskey
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [dnskey]
properties:
dnskey: { type: string, example: 'example.com. 3600 IN DNSKEY 256 3 8 AwEAAa...' }
responses:
'200':
description: DNSKEY parsed successfully
content:
application/json:
schema: { $ref: '#/components/schemas/DnskeyParseResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/calculate-key-tag:
post:
tags: [DNS]
summary: Calculate Key Tag
description: Calculate DNSSEC key tag from DNSKEY record
operationId: calculateKeyTag
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [dnskey]
properties:
dnskey: { type: string, example: 'AwEAAa...' }
algorithm: { type: integer, example: 8 }
responses:
'200':
description: Key tag calculated
content:
application/json:
schema: { $ref: '#/components/schemas/KeyTagResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/generate-ds-record:
post:
tags: [DNS]
summary: Generate DS Record
description: Generate DS record from DNSKEY for DNSSEC delegation
operationId: generateDsRecord
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [dnskey, domain]
properties:
dnskey: { type: string, example: 'AwEAAa...' }
domain: { type: string, example: 'example.com' }
digestType: { type: integer, enum: [1, 2, 4], default: 2 }
responses:
'200':
description: DS record generated
content:
application/json:
schema: { $ref: '#/components/schemas/DsRecordResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/calculate-nsec3-hash:
post:
tags: [DNS]
summary: Calculate NSEC3 Hash
description: Calculate NSEC3 hash for DNS name and zone
operationId: calculateNsec3Hash
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [name, zone]
properties:
name: { type: string, example: 'example.com' }
zone: { type: string, example: 'com' }
salt: { type: string, example: 'aabbccdd' }
iterations: { type: integer, default: 1 }
responses:
'200':
description: NSEC3 hash calculated
content:
application/json:
schema: { $ref: '#/components/schemas/Nsec3HashResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/suggest-rrsig-windows:
post:
tags: [DNS]
summary: Suggest RRSIG Windows
description: Suggest optimal RRSIG signing windows for DNSSEC
operationId: suggestRrsigWindows
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ttl: { type: integer, default: 86400 }
signatureValidityDays: { type: integer, default: 30 }
renewalLeadTime: { type: integer, default: 24 }
desiredOverlap: { type: integer, default: 24 }
clockSkew: { type: integer, default: 1 }
responses:
'200':
description: RRSIG windows calculated
content:
application/json:
schema: { $ref: '#/components/schemas/RrsigWindowsResult' }
'400': { $ref: '#/components/responses/ValidationError' }
# ============= DNS - PTR & Reverse =============
/api/dns/ptr-generator:
post:
tags: [DNS]
summary: Generate PTR Records
description: Generate PTR records for reverse DNS lookup
operationId: generatePtrRecords
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [input]
properties:
input: { type: string, example: '192.168.1.0/24' }
domain: { type: string, example: 'example.com' }
template: { type: string, example: 'host-{ip}.example.com' }
responses:
'200':
description: PTR records generated
content:
application/json:
schema: { $ref: '#/components/schemas/PtrGeneratorResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/reverse-zones:
post:
tags: [DNS]
summary: Calculate Reverse Zones
description: Calculate reverse DNS zones for IP ranges
operationId: calculateReverseZones
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr]
properties:
cidr: { type: string, example: '192.168.0.0/16' }
responses:
'200':
description: Reverse zones calculated
content:
application/json:
schema: { $ref: '#/components/schemas/ReverseZonesResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/generate-reverse-zone:
post:
tags: [DNS]
summary: Generate Reverse Zone File
description: Generate complete reverse DNS zone file
operationId: generateReverseZone
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [cidr]
properties:
cidr: { type: string, example: '192.168.1.0/24' }
nameservers: { type: array, items: { type: string }, example: ['ns1.example.com.', 'ns2.example.com.'] }
template: { type: string, example: 'host-{ip}.example.com.' }
ttl: { type: integer, default: 3600 }
responses:
'200':
description: Reverse zone file generated
content:
application/json:
schema: { $ref: '#/components/schemas/ReverseZoneFileResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/analyze-ptr-coverage:
post:
tags: [DNS]
summary: Analyze PTR Coverage
description: Analyze PTR record coverage for IP ranges
operationId: analyzePtrCoverage
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [range]
properties:
range: { type: string, example: '192.168.1.0/24' }
existing: { type: array, items: { type: string }, example: ['192.168.1.1', '192.168.1.10'] }
responses:
'200':
description: PTR coverage analyzed
content:
application/json:
schema: { $ref: '#/components/schemas/PtrCoverageResult' }
'400': { $ref: '#/components/responses/ValidationError' }
# ============= DNS - Utilities =============
/api/dns/validate-domain:
post:
tags: [DNS]
summary: Validate Domain Name
description: Validate domain name format and structure
operationId: validateDomain
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [domain]
properties:
domain: { type: string, example: 'example.com' }
strict: { type: boolean, default: false }
responses:
'200':
description: Domain validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/DomainValidationResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-email:
post:
tags: [DNS]
summary: Validate Email Address
description: Validate email address format for DNS records
operationId: validateEmail
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [email]
properties:
email: { type: string, example: 'admin@example.com' }
responses:
'200':
description: Email validation completed
content:
application/json:
schema: { $ref: '#/components/schemas/EmailValidationResult' }
'400': { $ref: '#/components/responses/ValidationError' }
/api/dns/validate-ttl:
post:
tags: [DNS]
summary: Validate TTL Value
description: Validate DNS TTL value and suggest optimizations
operationId: validateTtl
requestBody: