0

I don't know a lot about DNS. So I am wondering if the following is possible:

We would like to have subomains that we internally can refer to without the last part of the domain.

Example:

We have a server foo in a subdomain bar at our company acme.com. So the full name of this server would be foo.bar.acme.com. No problem, this works.

However, we would also like to be able to use the abbreviated name foo.bar to refer to this server on computers that are in our intranet.

This way, for instance, if foo is a webserver, our internal users could surf to http://foo.bar instead of having to go to http://foo.bar.acme.com.

Is this possible to set up?

(Our network is Windows based)

1 Answers1

2

You can create an internal DNS zone called bar, and then create a CNAME record in this zone, so that foo.bar points to foo.bar.acme.com. Repeat for each host which needs this kind of aliasing.

Another option would be to configure the network interfaces on your computers to use additional DNS search suffixes other than the default domain one, so that when they need to resolve a non-FQDN name, they will automatically try appending different suffixes to it in order to find the full name. This can be managed centrally via Group Policies. However, be careful with this as it could sometimes lead to unpredictable results.

I strongly suggest the first option, a server-side DNS zone is much easier to manage (and troubleshoot if/when something goes wrong) than thinkering with how clients resolve names; also, you can choose which names are treated this way, while a client-side DNS search suffix would apply to any name.

Massimo
  • 72,827