Description:

When using LTA, the gateway is always also assigned as the DNS server. To use your own DNS server, the LTA dial-in pool must be modified. This can be done with the add-in below

List of used variables:

VariableDescription




Add-in code:

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


    ufAPi = config.getUfApi();
    ufAPi.modifyObject("ipsec-virtual-ip-pools",
        ufAPi.lookup("ipsec-virtual-ip-pools",
            {
                'name': "LTA Pool"
            }),
        {
            "dns1Address": "8.8.8.8", // Setting first DNS-Server
            "dns2Address": "1.1.1.1"  // Setting second DNS-Server
        });

};

Add-in as JSON file:

LTA-Change-DNS-FX.json