Reach self hosted server from LAN

Hello, I had this problem for a while and finally I found how to fix it, so I will upload the solution here (Lo iba a poner en, así que lo hice en inglés, siempre se podría traducir… :).

I have a self hosted server with Apache2 pointed with the domain I have also some virtual servers,, etc.

This server is in my LAN, and when I try to access to my server within the LAN throw y get my router’s configuration page. From outside the LAN and works properly. From inside the LAN (server internal IP) shows the default webpage (, but I can not get
I also have a LAN name server in with bind9.

How to solve the problem and get my web server from inside of my LAN

This are my config files, I have 2 DNS zones, one with my LAN (home.lan) and another with my domain (


zone "home.lan" IN {
    type master;
    file "/etc/bind/zones/home.lan.db";
zone "" IN {
    type master;
    file "/etc/bind/zones/";


$TTL 86400      ; 1 day
home.lan. IN SOA server.home.lan. hostmaster.home.lan. (
    2008080901 ; serial
    8H ; refresh
    4H ; retry
    4W ; expire
    1D ; minimum
home.lan. IN NS server.home.lan.

$ORIGIN home.lan.

localhost    IN A

router       IN A
server          IN A
mypc     IN A


$TTL 86400      ; 1 day IN SOA hostmaster.home.lan. (
    2008080902 ; serial
    8H ; refresh
    4H ; retry
    4W ; expire
    1D ; minimum


localhost    IN A

www         IN A
cloud       IN A


And, of course, all the names that we don’t know we have to ask them to openDNS

options {
        directory "/var/cache/bind";

         forwarders {

        dnssec-validation auto;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };

Etiquetas: , ,

One response to “Reach self hosted server from LAN”

  1. says :

    I really consider this amazing blog , “Reach self hosted server
    from LAN FreeFri”, highly engaging and also it was indeed a fantastic read.
    Thanks a lot-Francisco


Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: