With Greg's kind help and patience I think I found my problem. I'd made some incorrect changes to the namedb files distributed with the system. When I fixed those files things started working the same on 6.1.3 as it does on my old 5.1 system.