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

Wildcard DNS A record

Hi,

 

I need to setup a wildcard domain to get an internal file hosting server running. How can i go about this? I am using the DNS server in Fortigate 101E. When i tried to put a * in the hostname field when creating an A record, the UI says it is an invalid domain.

 

Any help or guidance will be much appreciated. Thank you.

12 REPLIES 12
NimbleIT
New Contributor

I used the @ symbol for the field "Hostname" and it seems to have worked.

Markus_M
Staff
Staff

Hello Michael,

 

what are you trying to accomplish?

DNS does not support and is not intended to answer for a wildcard entry.

That works with certificates, but a * is not a valid A-record entry in any DNS server I know of.

I did some research and found this is indeed possible, although it will have expected adverse effects.

I don't think you can make the FortiGate respond to any query of a domain with the same IP address. This makes only sense in a captive portal environment (internal), that however is limited as the FortiGate would have to respond not only to that one domain, but ALL domains with the same IP for internal users.

 

Best regards,

 

Markus

 

TimUK
New Contributor

Back to what another had previously commented on this ticket, re DNS specs. 

 

Hm this is FortiOS specific behavior. Looks like Fortinet doesn't meet the DNS specs.

 

basically in a DNS Zone it is definitely allowed to set a wildcard

 

* IN A <ip>  does always mean *.domain.tld (i.e. anything not matched by other A entries in the zone).

 

And no this does not mean any domain in the world as it is only valid in a zone. This means it is only valid for subdomains of 2nd level domain the zone is for.

 

I have the same problem now, AD and F5 DNS can do *. A records, now I need to do the same to rewrite a subzone for our development team's isolated environment, and its a section that needs to use different DNS, so DNS-Server works great for this, all but for this one roadblock I've just hit. 

 

Kind Regards, 

 

Tim 

Labels
Top Kudoed Authors