We have successfully run an office network with various Linux servers (Ubuntu) and Windows+Linux clients for several years now. One server acts as and internal DNS server using the DNSmasq light-weight DNS server package.
And just today I found out that the command
$ nslookup machine.domain.com
works, but
$ nslookup machine.domain.com/
does NOT work --> Non-existent domain / NXDOMAIN
This happened on an Ubuntu machine as well as on a Windows machine.
Is this just because here (i.e. when using cmds like "nslookup" or "host"), the slash at the end is considered being part of the domain name, i.e. top-level domain being "com/"? Or does it indicate some misconfiguration of our internal DNS server?
Obviously, browsers "usually" handle this slash correctly in the sense that they use just the domain name without the slash for DNS lookup and thus get an answer. I put the "usually" here because just today I came across a fresh Firefox installed on a fresh Ubuntu 22.04 LTS installation where entering the slash in the browser address bar (i.e. machine.domain.com/
) strangely ended with the NXDOMAIN error message mentioned above.
And - even stranger - only after a successful lookup by removing the trailing slash, it also started to work with the "slashed address". This latter behavior might be caused by Firefox caching...
Anyone having some insights for me? Is it maybe even a combination of my missing understanding how DNS works (i.e. a trailing slash or even a subsequent path actually really points to a "different domain") and a Firefox bug (i.e. erroneously including the slash in the DNS query in the installed Firefox version)? Thanks!