Skip to main content
elior021
New Member
May 9, 2013
Question

overriding dns in Fortigate Instead hosts file

  • May 9, 2013
  • 2 replies
  • 25142 views
hey all Anyone know how to edit hosts file on Fortigate or make override dns to specific domain ? for example: site bbb.com do resovle to specific ip address 1.1.1.1 i dont want do this on the hosts file bacuse i have many computers so i want to now how do this on my fortigate. Thanks for help

    2 replies

    qxu_FTNT
    Staff
    Staff
    May 9, 2013
    You could do like this: config system dns-server edit " port11" next end config system dns-database edit " bbb" config dns-entry edit 1 set hostname " site1" set ip 1.1.1.1 next end set domain " bbb.com" next end
    elior021
    elior021Author
    New Member
    May 12, 2013
    i did it i do ping from fortigate to hostname www.bbb.com and is work perfect. but if i do ping from computer to www.bbb.com it still resolve from dns server. i tried do ipconfig /flushdns command from computer and also do clear dns cache on fortigate but It did not help
    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.