Can not create subdomain

SnIpY

New member
Joined
Oct 13, 2012
Messages
3
Whenever I try to create a subdomain, the following error appears:

012:10:13-11:33:57: Unable to save zone domain.com: named-zonecheck returned:
loading "domain.com" from "/etc/bind/domain.com.db.temp" class "IN"
dns_rdata_fromtext: /etc/bind/domain.domain.db.temp:27: near '[email protected]': bad dotted quad
dns_rdata_fromtext: /etc/bind/domain.domain.db.temp:30: near '[email protected]': bad dotted quad
zone domain.com/IN: loading from master file /etc/bind/domain.com.db.temp failed: bad dotted quad
zone domain.com/IN: not loaded due to errors.

I have looked at the crashing files in question and found nothing :/
 
Look for errors in your domain.com zone file, specifically at your IP#s, such as two dots in a row, or ending with a dot.

Jeff
 
Hello,

Post the whole zone here then, so we could check it.

Code:
$TTL 14400
@       IN      SOA     ns1.domain.com      hostmaster.domain.com. (
                                                2012032700
                                                14400
                                                3600
                                                1209600
                                                86400 )

domain.com.     14400   IN      NS      ns1.domain.com.
domain.com.     14400   IN      NS      ns2.domain.com.

domain.com.     14400   IN      A       109.235.51.13
ftp     14400   IN      A       109.235.51.13
localhost       14400   IN      A       127.0.0.1
mail    14400   IN      A       109.235.51.13
pop     14400   IN      A       109.235.51.13
smtp    14400   IN      A       109.235.51.13
www     14400   IN      A       109.235.51.13

domain.com.     14400   IN      MX      10 mail



domain.com.     14400   IN      TXT     "v=spf1 a mx ip4:109.235.51.13 ~all"

localhost       14400   IN      AAAA    ::1
 
Firstly, If it's NOT a mistake:

Code:
domain.com.     14400   IN      NS      ns1.domain.com.
domain.com.     14400   IN      NS      ns2.domain.com.

and your domain.com is really delegated with ns1.domain.com and ns2.domain.com, then you should add two new A records: one for ns1.domain.com and the other one for ns2.domain.com

Secondly, the error posted by you in the very beginning of the thread does not seem to be related to this moment.

Thirdly, in the second line of the file you are missing a full-stop, so it should be like the following:

@ IN SOA ns1.domain.com. hostmaster.domain.com.

It it's not misprint made here on forums, then you should fix it (I'd think it is a misprint made on the forums).

Anyway, having this output is in my opinion useless, as there are no lines 27 and 30 in their original states:

Code:
dns_rdata_fromtext: /etc/bind/domain.domain.db.temp:27: near '[email protected]': bad dotted quad
 dns_rdata_fromtext: /etc/bind/domain.domain.db.temp:30: near '[email protected]': bad dotted quad
 
That's because the temp file the error is located in, simply does not exist...
 
The temp file doesnt exit till you confirm the add, than DA create the file, check-it and once check success make it a .db file for production, if test fail, da delete the tmp file..

So, that's for sure not the error itself.

Regards
 
Back
Top