Need a little dns help

Discussion in 'Installation/Configuration' started by trinitron, Jul 31, 2012.

  1. trinitron

    trinitron New Member

    I have just install the

    The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)

    everything work perfect
    I have only one small problem. When I what to see a webpage inside my network my fuc..... router an Cisco RV220W route the me to it's management page.

    If I go to another internet connection the page works fine it is only when I'm inside the same network.
    What is the easy way to see the pages local.

    Kind Regards
    Kasper
     
  2. NeonNexxus

    NeonNexxus New Member

    DNS Server

    whats your dns configuracion on the client computer?
    Why not set the DNS server on the ubuntu box create the zones there for your internal network and then put your client computers to use your Ubuntu server as your dns server that way you can bypass any dns query and do it locally.
    Ed
     
  3. trinitron

    trinitron New Member

    Thanks for your quick reply

    My DNS configuration on my client just use the router.

    I'm rather new to linux do you know of any tutorials to setup as your suggestion

    kind Regards
    Kasper
     
  4. NeonNexxus

    NeonNexxus New Member

    Well a quick google search gave me back this.

    I do not use Ubuntu myself that much i am a CentOS and SUSE flavor kinda guy.
    Try this.
    http://ubuntuforums.org/showthread.php?t=236093
    If that wont work for you I will be online with skype ed.quevedo if you need further assistance.
    Always glad to help here where myself have found lots of help.
    DUHHH .. did not read until now you already installed BIND .. you have the dns server there ..
    Best of the tutorials are falkos tuts.
    So now just create the zones.
     
    Last edited: Aug 1, 2012
  5. falko

    falko Super Moderator ISPConfig Developer

    Make sure that the DNS records point to your router's public IP and that your router is configured to forward all needed ports (e.g. 80 for http) to your server.

    If that doesn't work, chances are that either your ISP is blocking port 80 or that your router doesn't support loopbacks.
     
  6. trinitron

    trinitron New Member

    Hallo Falko

    I think you have misunderstod me.
    You can see websites. DNS records are setup up for the ip-adress every thing is forwarded and so.

    But if you hare inside the local-network. Then the router overrules and forward it to the cisco management adress.
     
  7. trinitron

    trinitron New Member


    Hallo NeonNexxus

    How do I create the zones you mention så i can use it as local DNS

    Kind Regards
    Kasper
     
  8. NeonNexxus

    NeonNexxus New Member

    Hi Trinitron

    Normally it depends on your Bind (DNS server) config.
    Default config for CentOS is inside /var/named/chroot ..
    I will have a look at the Ubuntu but my guess is that it is the same.

    Make sure that in /etc/hosts, the hostname of the server has been pointed to the IP address of the server. It should look like below:

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.137.2 mail.mydomain.com mail
    ::1 localhost6.localdomain6 localhost6


    Create a file /var/named/chroot/var/named/mydomain.com with the following configuration:

    ;
    ; Addresses and other host information.
    ;
    @ IN SOA mydomain.com. hostmaster.mydomain.com. (
    2011030801 ; Serial
    43200 ; Refresh
    3600 ; Retry
    3600000 ; Expire
    2592000 ) ; Minimum

    ; Define the nameservers and the mail servers

    IN NS ns.mydomain.com.
    IN A 192.168.137.2
    IN MX 10 mail.mydomain.com.

    mail IN A 192.168.137.2
    ns IN A 192.168.137.2



    Edit the /var/named/chroot/etc/named.conf file to match the mydomain.com

    options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    forwarders { 8.8.8.8; };
    };
    include "/etc/rndc.key";
    // We are the master server for mydomain.com

    zone "mydomain.com" {
    type master;
    file "mydomain.com";
    };

    Start named on the server

    /etc/init.d/named start



    If you need further help skype me.
    ed.quevedo
    Thanks
    Ed
     
    Last edited: Aug 6, 2012

Share This Page