Link to home
Start Free TrialLog in
Avatar of ivirdi
ivirdi

asked on

Debian - Inside local network

I just installed debian and apache and everything is up and running on 192.168.1.102...  However, when i type my domain name inside my local network, for some reason, it keeps trying to hit 192.168.1.103, instead of 102...   Even when i try to ping my domain name inside my local network, it tries to hit .103.  I have no computers on my network assigned with an IP of .103.   When i am outside my network, such as work or some other place, i can get to my website just fine...  When i do type in .102 inside my local network in IE, it does take me to my website/server...   Anyone got any clue?
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ivirdi
ivirdi

ASKER

Here's how my etc/hosts file looks:
127.0.0.1       localhost
192.168.1.102   www.website.com  doom

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


This is how my resolv.conf files looks:
search www.website.com
nameserver 192.168.1.1
In your hosts file "192.168.1.102   www.website.com  doom" should really be "192.168.1.102   www.website.com  www doom". And in resolv.conf you should have "search website.com".

If you do 'host www.website.com' or 'nslookup www.website.com' what is the result?