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

plain hostname entry in DNS-server without domain

Hi!

I´m new to fortigate and I´ve spent some time but did not find a solution or hints in the forum on my question:

 

I have configured a DNS-server on the local network.

I want to migrate the windows hosts-file entries to the DNS-Server.

 

in the hosts file I find entries like

myserver 192.168.1.55

 

how can I add this to the fortigate DNS database?

the computers are not in any domain. I have not configured a domain.

I just need the plain computername to be resolved to the local IP-Address.

Is this possible?

 

Many thanks

1 Solution
AEK
SuperUser
SuperUser

Hello

While this is possible with the etc/hosts file I don't think it is possible with a real DNS server where there must be a domain name under which you define your hostnames.

In your case I guess you just need to add the record as myserver.mydomain.com (add it on your DNS server DB), and then on your clients (or on your DHCP server) you configure the default domain as mydomain.com. This doesn't need a Windows domain since it is purely DNS related. If I'm not wrong this should then work when you query "myserver" from you client.

 
AEK

View solution in original post

AEK
3 REPLIES 3
ozkanaltas
Valued Contributor III

Hello @ingenious_minds ,

 

You can use your FortiGate as a DNS server. These documents describe how can you use FortiGate as a DNS server.

 

https://docs.fortinet.com/document/fortigate/7.4.4/administration-guide/960561/fortigate-dns-server

 

https://docs.fortinet.com/document/fortigate/7.4.4/administration-guide/612974/basic-dns-server-conf...

 

https://docs.fortinet.com/document/fortigate/6.2.16/cookbook/960561/fortigate-dns-server

 

 

If you have found a solution, please like and accept it to make it easily accessible to others.
NSE 4-5-6-7 OT Sec - ENT FW
If you have found a solution, please like and accept it to make it easily accessible to others.NSE 4-5-6-7 OT Sec - ENT FW
AEK
SuperUser
SuperUser

Hello

While this is possible with the etc/hosts file I don't think it is possible with a real DNS server where there must be a domain name under which you define your hostnames.

In your case I guess you just need to add the record as myserver.mydomain.com (add it on your DNS server DB), and then on your clients (or on your DHCP server) you configure the default domain as mydomain.com. This doesn't need a Windows domain since it is purely DNS related. If I'm not wrong this should then work when you query "myserver" from you client.

 
AEK
AEK
ingenious_minds

Jep, this helped me and I got it running that way.

I needed to set DHCP Option 15 (via cli as suggested by the GUI-warning).

 

Many thanks!

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