diff --git a/applications/dns.nix b/applications/dns.nix index 0f95099..d3db25d 100644 --- a/applications/dns.nix +++ b/applications/dns.nix @@ -47,55 +47,55 @@ # base config for domains we own (skynet.ie, csn.ul.ie, ulcompsoc.ie) get_config_file = ( domain: '' - $TTL 60 # 1 minute - # hostmaster@${domain} is an email address that recieves stuff related to dns + $TTL 60 ; 1 minute + ; hostmaster@${domain} is an email address that recieves stuff related to dns @ IN SOA ${nameserver}.${domain}. hostmaster.${domain}. ( - # Serial (YYYYMMDDCC) this has to be updated for each time the record is updated + ; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated ${current_date} - 600 # Refresh (10 minutes) - 300 # Retry (5 minutes) - 604800 # Expire (1 week) - 3600 # Minimum (1 hour) + 600 ; Refresh (10 minutes) + 300 ; Retry (5 minutes) + 604800 ; Expire (1 week) + 3600 ; Minimum (1 hour) ) @ NS ns1.${domain}. @ NS ns2.${domain}. - # @ stands for the root domain so the A record below is where ${domain} points to - #@ A 193.1.99.76 - #@ MX 5 ${domain}. + ; @ stands for the root domain so the A record below is where ${domain} points to + ;@ A 193.1.99.76 + ;@ MX 5 ${domain}. - # can have multiple mailserves + ; can have multiple mailserves @ MX 10 mail.${domain}. - # ------------------------------------------ - # Server Names (A Records) - # ------------------------------------------ + ; ------------------------------------------ + ; Server Names (A Records) + ; ------------------------------------------ ${format_records sort_records_server 31} - # ------------------------------------------ - # A (non server names) - # ------------------------------------------ + ; ------------------------------------------ + ; A (non server names) + ; ------------------------------------------ ${format_records sort_records_a 31} - # ------------------------------------------ - # CNAMES - # ------------------------------------------ + ; ------------------------------------------ + ; CNAMES + ; ------------------------------------------ ${format_records sort_records_cname 31} - # ------------------------------------------ - # TXT - # ------------------------------------------ + ; ------------------------------------------ + ; TXT + ; ------------------------------------------ ${format_records (filter_records_type "TXT") 31} - # ------------------------------------------ - # MX - # ------------------------------------------ + ; ------------------------------------------ + ; MX + ; ------------------------------------------ ${format_records (filter_records_type "MX") 31} - # ------------------------------------------ - # SRV - # ------------------------------------------ + ; ------------------------------------------ + ; SRV + ; ------------------------------------------ ${format_records sort_records_srv 31} @@ -107,23 +107,23 @@ get_config_file_rev = ( domain: '' $ORIGIN 64-64.99.1.193.in-addr.arpa. - $TTL 60 # 1 minute - # hostmaster@skynet.ie is an email address that recieves stuff related to dns + $TTL 60 ; 1 minute + ; hostmaster@skynet.ie is an email address that recieves stuff related to dns @ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. ( - # Serial (YYYYMMDDCC) this has to be updated for each time the record is updated + ; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated ${current_date} - 600 # Refresh (10 minutes) - 300 # Retry (5 minutes) - 604800 # Expire (1 week) - 3600 # Minimum (1 hour) + 600 ; Refresh (10 minutes) + 300 ; Retry (5 minutes) + 604800 ; Expire (1 week) + 3600 ; Minimum (1 hour) ) @ NS ns1.skynet.ie. @ NS ns2.skynet.ie. - # ------------------------------------------ - # PTR - # ------------------------------------------ + ; ------------------------------------------ + ; PTR + ; ------------------------------------------ ${format_records sort_records_ptr 3} '' ); @@ -131,15 +131,15 @@ # domains we dont have proper ownership over, only here to ensure the logs dont get cluttered. get_config_file_old_domains = ( domain: '' - $TTL 60 # 1 minute - # hostmaster@skynet.ie is an email address that recieves stuff related to dns + $TTL 60 ; 1 minute + ; hostmaster@skynet.ie is an email address that recieves stuff related to dns @ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. ( - # Serial (YYYYMMDDCC) this has to be updated for each time the record is updated + ; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated ${current_date} - 600 # Refresh (10 minutes) - 300 # Retry (5 minutes) - 604800 # Expire (1 week) - 3600 # Minimum (1 hour) + 600 ; Refresh (10 minutes) + 300 ; Retry (5 minutes) + 604800 ; Expire (1 week) + 3600 ; Minimum (1 hour) ) @ NS ns1.skynet.ie.