<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFCC" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 25/11/13 15.00, Alan Clegg wrote:<br>
    </div>
    <blockquote
      cite="mid:E69E296A-DAD8-4BAF-9C5F-B67EE6D828B5@clegg.com"
      type="cite">
      <pre wrap="">
On Nov 25, 2013, at 7:55 AM, Paweł Ch. <a class="moz-txt-link-rfc2396E" href="mailto:pch0317@gmail.com"><pch0317@gmail.com></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi list,

I would like to write script that change two entry in my zone file: SOA and A record.

I have 2 web site: mail site site1.tld and backup site site2.tld. Script should monitor site1.tld and when site is unavailable it should change A record in zone file to indicate to site2.tld. If site1.tld is available again then A record should indicate to it.
Script should change SOA serial number.</pre>
      </blockquote>
    </blockquote>
    If this really is mail only as I read from your mail, SMTP already
    takes care to use the backup server, just put correct priority in
    DNS.<br>
    <blockquote
      cite="mid:E69E296A-DAD8-4BAF-9C5F-B67EE6D828B5@clegg.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">

Please help with writing a script.
</pre>
      </blockquote>
      <pre wrap="">
make the zone dynamic, read man page on nsupdate.

AlanC
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Please visit <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list

bind-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 
</pre>
  </body>
</html>