Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    2

    BIND/DNS setup working(kinda)


    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. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    What do the following commands give you?

    Code:
    named-checkconf
    named-checkzone
    Use man <command> to see how to use them.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •