I have Internet access through a student residence network (via a jack on the wall). I want to connect it to a router to be able to connect both a laptop and a mobile phone (my residence only allows a single MAC address per room). I can use for instance Connectify, but I'd like to avoid having the computer on to be able to connect my phone.
I can connect the router, clone my MAC and it almost works: both computers can access the Internet. However, the university's website (which I'll call www.example.com from now on) becomes inaccessible in this case: I cannot access it by name (
nslookup returns "Can't find www.example.com: No answer"), and if I try to access it by IP (obtained via
nslookup when not using the router, and defined as 10.f.g.h, in the local network), I have an error reported by a TYPO3 page:
Page Not Found. Reason: RealURL error: unable to determine rootpage_id for the current domain.
I'd like to both understand: (1) what TYPO3 is doing in this case, and for instance if there is a URL which I can use to take me to the "standard" www.example.com website; and (2) if there is a way to tell my router to obtain the DNS result just as my computer does when it is connected directly to the wall. I believe this should be possible, since using Connectify allows me to do it: my phone can access www.example.com even though its DNS server is reported as the laptop.
I already tried most if not all DNS settings on DD-WRT. For instance, enabling local DNS and setting it as the value obtained by my computer. I tried using OpenDNS, but it is blocked in my local network. Google's public DNS is not blocked but I couldn't make it work either.
This question has been cleaned and reformulated. Some additional (possibly useful) information can be found below.
Using isitup.org, I can see the external IP reported for www.example.com is different from the one I obtain when inside the residence network, and this external IP is not accessible from the residence.
Full results for some tests using
When connecting without router:
% nslookup www.example.com Server: 10.4.a.b Address: 10.4.a.b#53 www.example.com canonical name = restypo01.example.com Name: restypo01.example.com Address: 10.5.x.y
When connecting with router (router's IP is 192.168.1.1):
% nslookup www.example.com Server: 192.168.1.1 Address: 192.168.1.1#53 *** Can't find www.example.com: No answer % nslookup restypo01.example.com Server: 192.168.1.1 Address: 192.168.1.1#53 *** Can't find restypo01.example.com: No answer
My router's DNS server is the same obtained when connecting without router: 10.4.a.b.
Edit: partial solution
I managed to add a special DNSMasq rule on my router that seems to work, at least for specific subdomains:
To get the exact IP addresses, I had to connect the computer without the router, retrieve the IP addresses of these domains (as seen from the internal network), and then I added these rules to the router, and now at least for these websites, it works.
However, these domains has several subdomains, so it becomes tedious to add each of them manually. I'd like them to be found automatically, just as when there is no router between my computer and the wall jack. Any ideas?