This probably has nothing special to do with the DNS part of the connection.
Web servers can key off information your browser sends with it's request headers, e.g., "referer" tags which indicate you clicked on a link on another site to get here, or what's most likely in this case is the User-Agent string sent by your browser. Here's a couple examples of User-Agent strings:
Chrome version 32 running on some 64-bit flavor of Linux:
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
or
Safari version 7.0.1 running on OS X 10.9.1:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11
This is also how web servers figure out if you are on a mobile device.
Here's Safari version 7.0 running on an iPad running IOS 7.0.4:
User-Agent: Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53
The web server can use this information to display a different page if the designer made a conscious effort to do so. So you can get a different-looking page on Chrome versus Safari, as a simple example. But as you can see from the contents of the User-Agent strings, there's a lot of information there that a web designer can use to customize the resulting page you get back.