Score:0

DNS forward resolution for specific non-FQDN hostnames (short names)

my flag

I'm in a situation where I'm being asked to solve a problem where computers are being migrated from one network/DNS domain to another. As this transition occurs, there will be machines in the original (call it xxx.org) DNS domain, that need to communicate by "short name" to the machines moved to the new network/DNS domain (call it yyy.org). Note that this is all internal, using private address space, nothing traversing the Internet.

The software involved resolves the target by short hostname only, not fqdn, apparently addresses cannot be entered, and the code cannot be modified.

My immediate suggestion was modifying the hosts file on the machines left on xxx.org with the addresses/names for the machines that have been moved, as the moves are made with the name and new IP address in yyy.org. This will require that the machines being moved obtain fixed addresses and the host file be updated/disseminated sporadically for about a month or so. This is troublesome, but not impossible to somewhat automate.

Is there a way in DNS to do this some other way that I'm missing? In my mind, the DNS server is only going to try the local domain for a short name and that is the end of it. I don't know how to setup any kind of static interception for specific names and forward resolution requests to the other domain's DNS.

cn flag
You haven't specified the environment but Windows can automatically append the domain(s) (devolution), and a domain suffix search order can be specified. Windows DNS Server can also be configured to resolve single-label names, which is what this is. So either your DNS server does this, or the client OS does it by some configuration, or use the hosts file.
cn flag
likewise most unix systems will let you add multiple "search domains" to the `/etc/resolv.conf` which the OS will automatically add to names before doing lookups, so just have all machines search both domains
Brian McMahon avatar
my flag
It is Windows, I'll check out the domain name suffix search order. The DNS servers are not authoritative for the yyy.org domain, so if the search order means that a referral occurs automatically than I guess that would solve it.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.