Configure DNS Forwarding on LCOS devices

This Addin script can be used if you want to configure DNS Forwarding on LCOS devices.

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {

    var Domain = context.vars.v1_Domain;
    var RtgTag = context.vars.v2_RoutingTag;
    var RemoteSite = context.vars.v3_RemoteSite;

    var DNSDestinations = config.getTableByOid("1.2.17.9");
    var NewRow = DNSDestinations.createNewRow();
    NewRow.setByOid("1", Domain);  
    NewRow.setByOid("3", RtgTag); 
    NewRow.setByOid("2", RemoteSite); 
    DNSDestinations.addOrMerge(NewRow);

};

download json file

results matching ""

    No results matching ""