When working in an intranet, it's often necessary to set up links to other computers (HTTP hyperlinks or shortcuts, hostname in various server config files, SSH shortcuts etc.).

In all these cases, technically I can either use the fully qualified name of the target system (e.g. http://server01.mydomain.local/ ), or just the hostname (e.g. http://server01/ ).

Technically, both should be the same (as long as the domain search list is set up correctly). However, I obviously need to choose one option.

So, is there any reason to prefer one over the other? What is the better option, especially with regards to later changes in the network, and to avoid maintenance problems?

link|improve this question

50% accept rate
feedback

1 Answer

up vote 3 down vote accepted

Use a local domain name.

If you use just single label hostnames you run the risk of clashing with the new gTLDs when they start popping up over the next few years.

It's also a good idea to avoid sharing URLs with single labels in them - if an employee clicks on an abbreviated URL whilst offsite there's no telling where they might end up, and worse still they might even end up leaking their internal authentication credentials.

link|improve this answer
Good point about people accidentally logging in to the wrong site with a short URL - didn't think about the security implications. – sleske Oct 9 '11 at 16:54
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.