Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
elior021
New Contributor

overriding dns in Fortigate Instead hosts file

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
3 REPLIES 3
qxu_FTNT
Staff
Staff

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
New Contributor

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
elior021
New Contributor

?
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors