@@ -390,9 +390,9 @@ export interface RuleSetting {
390
390
391
391
/**
392
392
* Add your own custom resolvers to route queries that match the resolver policy.
393
- * Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will
394
- * route to the address closest to their origin. Only valid when a rule's action is
395
- * set to 'resolve'.
393
+ * Cannot be used when ' resolve_dns_through_cloudflare' or 'resolve_dns_internally'
394
+ * are set. DNS queries will route to the address closest to their origin. Only
395
+ * valid when a rule's action is set to 'resolve'.
396
396
*/
397
397
dns_resolvers ?: RuleSetting . DNSResolvers ;
398
398
@@ -458,10 +458,19 @@ export interface RuleSetting {
458
458
*/
459
459
quarantine ?: RuleSetting . Quarantine ;
460
460
461
+ /**
462
+ * Configure to forward the query to the internal DNS service, passing the
463
+ * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified
464
+ * or 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action is
465
+ * set to 'resolve'.
466
+ */
467
+ resolve_dns_internally ?: RuleSetting . ResolveDNSInternally ;
468
+
461
469
/**
462
470
* Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS
463
- * resolver. Cannot be set when dns_resolvers are specified. Only valid when a
464
- * rule's action is set to 'resolve'.
471
+ * resolver. Cannot be set when 'dns_resolvers' are specified or
472
+ * 'resolve_dns_internally' is set. Only valid when a rule's action is set to
473
+ * 'resolve'.
465
474
*/
466
475
resolve_dns_through_cloudflare ?: boolean ;
467
476
@@ -529,9 +538,9 @@ export namespace RuleSetting {
529
538
530
539
/**
531
540
* Add your own custom resolvers to route queries that match the resolver policy.
532
- * Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will
533
- * route to the address closest to their origin. Only valid when a rule's action is
534
- * set to 'resolve'.
541
+ * Cannot be used when ' resolve_dns_through_cloudflare' or 'resolve_dns_internally'
542
+ * are set. DNS queries will route to the address closest to their origin. Only
543
+ * valid when a rule's action is set to 'resolve'.
535
544
*/
536
545
export interface DNSResolvers {
537
546
ipv4 ?: Array < RulesAPI . DNSResolverSettingsV4 > ;
@@ -634,6 +643,26 @@ export namespace RuleSetting {
634
643
> ;
635
644
}
636
645
646
+ /**
647
+ * Configure to forward the query to the internal DNS service, passing the
648
+ * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified
649
+ * or 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action is
650
+ * set to 'resolve'.
651
+ */
652
+ export interface ResolveDNSInternally {
653
+ /**
654
+ * The fallback behavior to apply when the internal DNS response code is different
655
+ * from 'NOERROR' or when the response data only contains CNAME records for 'A' or
656
+ * 'AAAA' queries.
657
+ */
658
+ fallback ?: 'none' | 'public_dns' ;
659
+
660
+ /**
661
+ * The internal DNS view identifier that's passed to the internal DNS service.
662
+ */
663
+ view_id ?: string ;
664
+ }
665
+
637
666
/**
638
667
* Configure behavior when an upstream cert is invalid or an SSL error occurs.
639
668
*/
@@ -694,9 +723,9 @@ export interface RuleSettingParam {
694
723
695
724
/**
696
725
* Add your own custom resolvers to route queries that match the resolver policy.
697
- * Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will
698
- * route to the address closest to their origin. Only valid when a rule's action is
699
- * set to 'resolve'.
726
+ * Cannot be used when ' resolve_dns_through_cloudflare' or 'resolve_dns_internally'
727
+ * are set. DNS queries will route to the address closest to their origin. Only
728
+ * valid when a rule's action is set to 'resolve'.
700
729
*/
701
730
dns_resolvers ?: RuleSettingParam . DNSResolvers ;
702
731
@@ -762,10 +791,19 @@ export interface RuleSettingParam {
762
791
*/
763
792
quarantine ?: RuleSettingParam . Quarantine ;
764
793
794
+ /**
795
+ * Configure to forward the query to the internal DNS service, passing the
796
+ * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified
797
+ * or 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action is
798
+ * set to 'resolve'.
799
+ */
800
+ resolve_dns_internally ?: RuleSettingParam . ResolveDNSInternally ;
801
+
765
802
/**
766
803
* Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS
767
- * resolver. Cannot be set when dns_resolvers are specified. Only valid when a
768
- * rule's action is set to 'resolve'.
804
+ * resolver. Cannot be set when 'dns_resolvers' are specified or
805
+ * 'resolve_dns_internally' is set. Only valid when a rule's action is set to
806
+ * 'resolve'.
769
807
*/
770
808
resolve_dns_through_cloudflare ?: boolean ;
771
809
@@ -833,9 +871,9 @@ export namespace RuleSettingParam {
833
871
834
872
/**
835
873
* Add your own custom resolvers to route queries that match the resolver policy.
836
- * Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will
837
- * route to the address closest to their origin. Only valid when a rule's action is
838
- * set to 'resolve'.
874
+ * Cannot be used when ' resolve_dns_through_cloudflare' or 'resolve_dns_internally'
875
+ * are set. DNS queries will route to the address closest to their origin. Only
876
+ * valid when a rule's action is set to 'resolve'.
839
877
*/
840
878
export interface DNSResolvers {
841
879
ipv4 ?: Array < RulesAPI . DNSResolverSettingsV4Param > ;
@@ -938,6 +976,26 @@ export namespace RuleSettingParam {
938
976
> ;
939
977
}
940
978
979
+ /**
980
+ * Configure to forward the query to the internal DNS service, passing the
981
+ * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified
982
+ * or 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action is
983
+ * set to 'resolve'.
984
+ */
985
+ export interface ResolveDNSInternally {
986
+ /**
987
+ * The fallback behavior to apply when the internal DNS response code is different
988
+ * from 'NOERROR' or when the response data only contains CNAME records for 'A' or
989
+ * 'AAAA' queries.
990
+ */
991
+ fallback ?: 'none' | 'public_dns' ;
992
+
993
+ /**
994
+ * The internal DNS view identifier that's passed to the internal DNS service.
995
+ */
996
+ view_id ?: string ;
997
+ }
998
+
941
999
/**
942
1000
* Configure behavior when an upstream cert is invalid or an SSL error occurs.
943
1001
*/
0 commit comments