Skip to main content
MarcelV
New Member
Jul 30, 2019 1:21 PM UTC
Question

DNS settings lost on FortiGate when re-installing policy package

I see a strange behavior here on our FortiManager when re-installing a policy package to any of our FortiGates. Every time I perform this action, the DNS settings on the FortiGate are removed. An example, I add an address under Object Configurations and want to deploy that to a FortiGate. I select that FortiGate and choose "Re-install policy". In the following screen, I can see the two buttons for "Install Preview" and "Policy Package Diff". The "Policy Package Diff" shows what needs to be changed (the new address object). But when I select "Install Preview" I notice four CLI command I didn't set, nor understand how these end up in there:

config system dns
unset primary
unset secondary
end
 

Anyone ever seen this and perhaps knows how to fix this?

 

Kind regards,

Marcel

    1 reply

    MarcelV
    MarcelVAuthor
    New Member
    Jul 30, 2019 1:32 PM UTC

    And all of a sudden I have found it. Turns out, in our provisioning template, the DNS settings were set but not filled in. So every time I deployed a package, the setting was overwritten.

     

    Problem solved!

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024