Full records for IN and MX
authorAdam Chlipala <adamc@hcoop.net>
Thu, 24 May 2007 23:12:15 +0000 (23:12 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Thu, 24 May 2007 23:12:15 +0000 (23:12 +0000)
src/plugins/bind.sml

index b6a07b6..5f37520 100644 (file)
@@ -101,14 +101,16 @@ fun writeRecord (evs, r) =
                                     write "\tIN\tCNAME\t";
                                     write to;
                                     write ".\n")
                                     write "\tIN\tCNAME\t";
                                     write to;
                                     write ".\n")
-             | MX (num, host) => (write "\t";
+             | MX (num, host) => (writeDom ();
+                                  write ".\t";
                                   write (Int.toString ttl);
                                   write "\tIN\tMX\t";
                                   write (Int.toString num);
                                   write "\t";
                                   write host;
                                   write ".\n")
                                   write (Int.toString ttl);
                                   write "\tIN\tMX\t";
                                   write (Int.toString num);
                                   write "\t";
                                   write host;
                                   write ".\n")
-             | NS host => (write "\t";
+             | NS host => (writeDom ();
+                           write ".\t";
                            write (Int.toString ttl);
                            write "\tIN\tNS\t";
                            write host;
                            write (Int.toString ttl);
                            write "\tIN\tNS\t";
                            write host;