File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ # 2024-05-06
2
+ If you use CNAMEs a trailing dot will now be added automatically.
3
+ This behavior is in line with other record types that use dns names.
4
+
5
+ This breaks using subdomain paths in CNAMEs and if you are using full domain names
6
+ in CNAMEs you will need to remove the trailing dot in your config.
7
+
8
+ ` zones."example.org"."example".cname.data = "example2" ` -> ` example.example.org IN CNAME example2. `
9
+ You will now have to write it as:
10
+ ` zones."example.org"."example".cname.data = "example2.example.org" ` -> ` example.example.org IN CNAME example2.example.org. `
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ lib.mapAttrs
84
84
'' ;
85
85
example = "foo.example.com" ;
86
86
type = with lib . types ; nullOr str ; # change str to lib.types.domain once it exists
87
- apply = x : if x != null then lib . toList x else x ;
87
+ apply = x : if x != null then lib . toList " ${ x } ." else x ;
88
88
} ;
89
89
sub = {
90
90
apply = lib . toList ;
Original file line number Diff line number Diff line change 98
98
"example.org" = {
99
99
"example.org" = {
100
100
cname = {
101
- data = [ "www.example.com" ] ;
101
+ data = [ "www.example.com. " ] ;
102
102
ttl = 60 ;
103
103
} ;
104
104
} ;
Original file line number Diff line number Diff line change 276
276
"example.org" = {
277
277
"example.org" = {
278
278
cname = {
279
- data = [ "www.example.com" ] ;
279
+ data = [ "www.example.com. " ] ;
280
280
ttl = 60 ;
281
281
} ;
282
282
} ;
You can’t perform that action at this time.
0 commit comments