View previous topic :: View next topic |
Author |
Message |
irasnyd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/185649071943c0d291d3057.jpg)
Joined: 16 Feb 2003 Posts: 286 Location: Placentia, CA
|
Posted: Sat Sep 13, 2003 10:40 am Post subject: Domain Resolution Questions |
|
|
I've recently been working at setting up a webserver on one of my home computers. The problem that I have is that I want the server to serve pages at irasnyd.homelinux.com, when the requests are coming from the internet. (I have this working fine). When I connect from my LAN though (where the server resides), I keep gettin a message: "The connections was refused when trying to contact irasnyd.homelinux.com."
My server's LAN ip is 192.168.1.12, the WAN (internet) ip is 68.66.0.xxx (There is only one NIC in the box, everything comes through my firewall, which has the ports forwarded)
Is there any way to make it so that webpages will work from inside the LAN as well as outside? (Preferably a fairly easy way )
Thanks very much,
Ira
//EDIT:
The webpages work just fine from the inside, as long as I type 192.168.1.12 in place of irasnyd.homelinux.com.
Is there a way to make irasnyd.homelinux.com resolve to 192.168.1.12 JUST for computers on my LAN? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mithi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jan 2003 Posts: 12
|
Posted: Sat Sep 13, 2003 11:07 am Post subject: |
|
|
If your webserver (or any other server in your LAN) does DNS for your LAN, you could try to add a line like
192.168.1.12 irasnyd.homelinux.com
to your DNS-server's /etc/hosts. Then your clients must (!) use your DNS-server, or they won't get any connection. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bmichaelsen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/8206921454311a2208aadc.jpg)
Joined: 17 Nov 2002 Posts: 1277 Location: Hamburg, Germany
|
Posted: Sat Sep 13, 2003 11:09 am Post subject: |
|
|
Well, you could solve this problem on the firewall machine. Use it as dns-Server and set it so that it returns 192.168.1.12 for irasnyd.homelinux.com and let every machine use the firewall as dns-server. If you have a hardware router you most probably will find a options for that in the configuration. If it is a linux-machine you might want to look at net-dns/pdnsd: its a small lightweight dns-server exactly for what you are trying to do. set irasnyd.homelinux.com to 192.168.1.12 in /etc/hosts on the firewall machine and let pdnsd use it.
Greetz, Björn
P.S. pdnsd has no man-page. use the good documentation in /usr/share/doc or on the webpage. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
irasnyd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/185649071943c0d291d3057.jpg)
Joined: 16 Feb 2003 Posts: 286 Location: Placentia, CA
|
Posted: Sat Sep 13, 2003 7:15 pm Post subject: |
|
|
Well, after doing some work and looking into how to set up pdnsd, I found out that my BSD based router/firewall already has this capability built in. Heh, I feel like such an idiot.
Thanks for the help everyone. It is VERY appreciated.
Ira |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|