BIND/DNS setup working(kinda)

Discussion in 'Server Operation' started by yah0m, Sep 24, 2008.

  1. yah0m

    yah0m New Member

    I've got a few domains and I setup BIND for my own nameservers, the only problem is, I can't seem to get virtual hosts on another IP to work.

    I can ping DOMAIN2 and I get the IP *.*.68.70 but no website loads.

    I've got 5 IPs on hand so I can switch things up if need be.

    My Setup:

    /etc/named.conf
    Code:
    options {
            directory    "/var/named";
            query-source port 53;
    
    allow-transfer {
            localhost;};
    };
    zone "DOMAIN1.org" {
            type master;
            file "DOMINA1.org.db";
    };
    zone "DOMAIN2.com" {
            type master;
            file "DOMINA2.com.db";
    };
    zone "localhost" {
            type master;
            file "localhost.db";
    };
    zone "0.0.127.in-addr.arpa" {
            type master;
            file "127.0.0.rev";
    };
    zone "." in {
            type hint;
            file "root.db";
    };
    /var/named/DOMAIN1.org.db
    Code:
    $ORIGIN DOMAIN1.org.
    $TTL 3h
    @        IN SOA ns1.DOMAIN1.org. host.DOMAIN1.org. (
                           2008092301        ; Serial yyyymmddnn
                           3h                ; Refresh After 3 hours
                           1h                ; Retry Retry after 1 hour
                           1w                ; Expire after 1 week
                           1h)             ; Minimum negative caching of 1 hour
    
    @                      300    IN NS    ns1.DOMAIN1.org.
    @                      300    IN NS    ns2.DOMAIN1.org.
    
    @                     300     IN MX 10 smtp.DOMAIN1.org.
    
    ns1                    300    IN A     *.*.68.69
    ns2                    300    IN A     *.*.68.69
    
    @                      300    IN A     *.*.68.69
    www                    300    IN A     *.*.68.69
    ftp                    300    IN A     *.*.68.69
    /var/named/DOMAIN2.org.db
    Code:
    $TTL 3h
    $ORIGIN DOMAIN2.com.
    @        IN      SOA    ns1.DOMAIN1.org. host.DOMAIN1.org. (
                           2008092401        ; Serial yyyymmddnn
                           3h                ; Refresh After 3 hours
                           1h                ; Retry Retry after 1 hour
                           1w                ; Expire after 1 week
                           1h)               ; Minimum negative caching of 1 hour
    
    
    @        IN     NS      ns1.DOMAIN1.org.
    @        IN     NS      ns2.DOMAIN1.org.
    
    
    @        IN     A       *.*.68.70
    ns1      IN     A       *.*.68.69
    ns2      IN     A       *.*.68.69
    www      IN     A       *.*.68.70
    ftp      IN     A       *.*.68.70
     
  2. chipsafts

    chipsafts New Member

    What are the file names for the domains supposed to be?
    double check your spellings.

    also check to see if web site will open if you try to get to www.domain2.org from the domain2 machine itself.
     
  3. marpada

    marpada New Member

    Last edited: May 13, 2011

Share This Page