Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Domain Resolution Questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
irasnyd
Apprentice
Apprentice


Joined: 16 Feb 2003
Posts: 286
Location: Placentia, CA

PostPosted: Sat Sep 13, 2003 10:40 am    Post subject: Domain Resolution Questions Reply with quote

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
View user's profile Send private message
Mithi
n00b
n00b


Joined: 17 Jan 2003
Posts: 12

PostPosted: Sat Sep 13, 2003 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Sat Sep 13, 2003 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
irasnyd
Apprentice
Apprentice


Joined: 16 Feb 2003
Posts: 286
Location: Placentia, CA

PostPosted: Sat Sep 13, 2003 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum