Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Question | 13 comments | Create New Account
Click here to return to the 'Question' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Question
Authored by: sjonke on Jun 30, '04 11:24:54AM

Can this be used to resolve the problem that when on my home airport network, I can't go to a web page served on one of my home machines by using the outside address. I.e. let's say that http://photos.bozo.com from the outside world is directed to a particular machine on the local airport network (via port forwarding on the airport base station). From the outside using this address works great. But when on the local airport network, the address doesn't work. Instead I have to use the local numeric IP address to get to the page. 10.0.1.10, for example. I would like it to be the case that when on the local airport network the address photos.bozo.com would resolve to 10.0.1.10 instead of the outside world address of the base station.

---
--- What?



[ Reply to This | # ]
Question
Authored by: r0adrage on Jul 17, '04 06:04:34PM

I solved that for my home network by running my own DNS server specifically for requests within my house. I set up a zone file for the 10.x.x.x net, and for my domains with all of my hostnames mapped to the correct 10.x address. My DHCP server tells all clients to use my DNS server. So www.brokenvaporware.com maps to 10.0.1.1 (or whatever) for clients inside my network.

This is not the same as my primary and secondary DNS servers. Those still give out my cablemodem address, so people outside can still contact my hosts.

You could use the /etc/resolver/blah trick to have your computer look at your internal DNS server (instead of having the DHCP server give out its address), but you would still need a nameserver running to offer up your lan mappings.



[ Reply to This | # ]