I have two domains registered with a registrar and a VPS with a hosting provider (separate).
I was able to get one of the domains accessible by adding the following to /etc/named.conf :
zone "domain1.com" in {
type master;
file "/var/named/domain1.com.zone";
};
However, I was not able to add another one? I have two IP addresses with the hosting provider.
I tried adding this, but it did not work:
zone "domain2.com" {
type slave;
file "/var/named/domain2.com.zone";
masters { 12.34.56.78; };
};
As per Configuring two DNS zones with named.conf I tried this as well:
zone "domain1.com" in {
type master;
file "/var/named/domain1.com.zone";
allow-transfer {12.34.56.78;12.34.56.79;};
};
zone "domain2.com" {
type master;
file "/var/named/domain2.com.zone";
allow-transfer {12.34.56.78;12.34.56.79;};
};
This is CentOS.
Edit1
# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/var/named/domain1.com.zone:2: no TTL specified; using SOA MINTTL instead
zone domain1.com/IN: loaded serial 2010082500
dns_rdata_fromtext: /var/named/domain2.com.zone:2: near eol: unexpected end of input
/var/named/domain2.com.zone:4: unknown RR type '600'
zone domain2.com/IN: loading master file /var/named/domain2.com.zone: unexpected end of input
_default/domain2.com/IN: unexpected end of input
[FAILED]