Forum Moderators: phranque

Message Too Old, No Replies

have to use a proxy to access website

how do i cure this problem?

         

incywincy

3:36 pm on Feb 7, 2003 (gmt 0)

10+ Year Member



i recently set up a webserver (redhat 8.0) at home, using my dsl connection, a firewall/router (ipcop) and dynamic dns translation (dyndns).

everything seems to be working fine except that i cannot access my websites from my lan unless i go through a proxy. this is a real pain.

i presume that this is some sort of dns problem but i don't have enough dns knowledge to debug this problem. can anyone advise?

thanks in advance.

Duckula

6:41 pm on Feb 9, 2003 (gmt 0)

10+ Year Member



<edit> I was looking at the problem from the wrong side, sorry :( . Thought that the sites were on the same lan and couldn't be found. </edit>

In consolation; I'll give you a link: [tldp.org...]

incywincy

6:57 pm on Feb 9, 2003 (gmt 0)

10+ Year Member



hi duckula.

not sure that this document solves my problem, i probably didn't explain my problem correctly.

box1 is a firewall/router (ipcop)
box2 is a redhat webserver running apache
box3 is my workstation

all 3 boxes are on my lan. box1 also has a usb dsl connection (alcatel speedtouch)

i can surf websites on the internet fine (e.g yahoo, google etc etc) but if i try to access www.mysite.com , running on box 2, i get 'Cannot find server or DNS Error
Internet Explorer'

if i go through a proxy however, everything is fine.

hope this explains my problem a bit better!

thanks in advance

Duckula

7:02 pm on Feb 9, 2003 (gmt 0)

10+ Year Member



I got it right the first time then :)

Try adding to /etc/hosts at box3 the following entry:

<ip of box2> www.mysite.com

for example,

192.168.1.4 www.mysite.com

That creates name resolution for that machine only, no need of dns.

incywincy

10:12 pm on Feb 9, 2003 (gmt 0)

10+ Year Member



thanks for the prompt response duckula.

actually box 3 is running under xp. boxes 1 and 2 are redhat. i edited the hosts and lmhosts on box 3. i then rebooted and pinged the domain from a dos window. the name resolved to an ip address but when i tried to access the website using explorer i got the same dns error. strange huh?