April 19, 2024, 10:29:29 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: BIND/DNS setup working(kinda)  (Read 2783 times)

Offline yah0m

  • New Member
  • Posts: 1
BIND/DNS setup working(kinda)
« on: September 24, 2008, 07:35:28 PM »
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: [Select]
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: [Select]
$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: [Select]
$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