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.
- 09-24-2008 #1Just 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
/var/named/DOMAIN1.org.dbCode: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/DOMAIN2.org.dbCode:$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
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
- 09-26-2008 #2
What do the following commands give you?
Use man <command> to see how to use them.Code:named-checkconf named-checkzone


Reply With Quote
