script - automatic change A record

Sten Carlsen stenc at s-carlsen.dk
Mon Nov 25 14:10:31 UTC 2013


On 25/11/13 15.00, Alan Clegg wrote:
> On Nov 25, 2013, at 7:55 AM, Pawe? Ch. <pch0317 at gmail.com> wrote:
>
>> 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.
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.
>>
>> Please help with writing a script.
> make the zone dynamic, read man page on nsupdate.
>
> AlanC
>
>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20131125/413b7a60/attachment.html>


More information about the bind-users mailing list