So I figured i could play around(Play being the key word) with Bind since I never had before, could't be to hard. I mean no other service configurations ive played with were hard, within 30 minutes of looking at nginx i was doing all kinds of crazy pointless stuff. I had 2 servers on, s1 and s2. I decided to setup 3, s3, to play around.
s1 and s3 run Webmin, s1 has webserver and other stuff including bind, s3 only runs bind. s2 runs virturalmin.
I figured if i got it working I would do ns1 = s1 and ns2 = s3, so ns2 won't be public.
I added s3 to s1's Bind Cluster Slave Servers, set "Create secondary on slave when creating locally?" set to yes. I found I can add zones and they get created as slaves on s3, dig seems to work correctly when connecting to s3 for the record.
Now when I was wondering how to get s2 to work with s1, i figures again, master/slave system. I go in s2. add s1 to the Bind Cluster Slave Servers. I then create a host in virtualmin, Zone is created and a slave zone is made on s1. Save zone was not made on s3 though. I figure in this case I just have to make s3 a slave of s2.
Second, dig returns SERVFAIL when trying to dig the domain record from s1.
Anyways, heres some technical stuff:
root@s1:/etc/bind# named-checkconf -p options { directory "/var/cache/bind"; listen-on-v6 { "any"; }; auth-nxdomain no; allow-query { "any"; }; }; zone "test.stormraidergames.com" { type slave; file "/var/lib/bind/test.stormraidergames.com.hosts"; masters { 99.198.122.62 ; }; }; zone "s1.southstormhosting.com" { type master; file "/var/lib/bind/s1.southstormhosting.com.hosts"; also-notify { 99.198.122.17; }; notify yes; }; zone "." { type hint; file "/etc/bind/db.root"; }; zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; server 69.175.32.250/32 { };
root@s2:/etc/bind# named-checkconf -p options { directory "/var/cache/bind"; listen-on-v6 { "any"; }; auth-nxdomain no; allow-query { 69.175.32.250/32; 99.198.122.172/32; 99.198.122.17/32; }; allow-transfer { 69.175.32.250/32; 99.198.122.172/32; 99.198.122.17/32; }; }; zone "test.stormraidergames.com" { type master; file "/var/lib/bind/test.stormraidergames.com.hosts"; allow-transfer { 127.0.0.1/32; "localnets"; }; }; zone "." { type hint; file "/etc/bind/db.root"; }; zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; server 69.175.32.250/32 { };
dig(The first one is the server connecting to its self)
root@s1:/etc/bind# dig @s1.southstormhosting.com test.stormraidergames.com. ; <<>> DiG 9.7.0-P1 <<>> @s1.southstormhosting.com test.stormraidergames.com. ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19646 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.stormraidergames.com. IN A ;; Query time: 0 msec ;; SERVER: 69.175.32.250#53(69.175.32.250) ;; WHEN: Tue Apr 26 23:19:28 2011 ;; MSG SIZE rcvd: 43 root@s1:/etc/bind# dig @s2.southstormhosting.com test.stormraidergames.com. ; <<>> DiG 9.7.0-P1 <<>> @s2.southstormhosting.com test.stormraidergames.com. ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22045 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.stormraidergames.com. IN A ;; ANSWER SECTION: test.stormraidergames.com. 14400 IN A 99.198.122.62 ;; AUTHORITY SECTION: test.stormraidergames.com. 14400 IN NS s2.southstormhosting.com. ;; Query time: 1 msec ;; SERVER: 99.198.122.62#53(99.198.122.62) ;; WHEN: Tue Apr 26 23:21:06 2011 ;; MSG SIZE rcvd: 94