never use links like thes in web projects :
<a href="http://my.doiman.tld/whatever/site.php" >The site</a>
_allways_ use links like these:
<a href="/whatever/site.php" >The site</a>
Let the browser figure out which hostname the URL belongs to,
that way your local copy (pab.cxm) will work just the same as your produktion copy (www.pab.net
As you mentioned that links on diferent levels in the menu work differently, you should doublecheck you code that no link depends on the hostname.
Even using $_SERVER_VARS['HOSTNAME'] or something similar in php might not work properly, but you should not need it anyway.
I read you use named for these hostnames.
I never worked with named, but for (local) development servernames and prod servernames I allways just putr the names in /etc/hosts
127.0.0.1 localhost.localdomain localhost
In my browser, when I go to www.my-site.de
it loads the production site, whereas when I laod local.my-website.de it loads the local copy.
I can now use exactly the same code on both servers.