DNS issue when adding a domain

Mecca

New member
Joined
Sep 7, 2011
Messages
8
Hi there,
I just tried to add a domain, but was returned with this issue

Error Creating Domain

Details

Could not write domain's db file in /etc/bind
User added to named.conf file successfully
Unable to save dns zone: named-zonecheck returned:
loading "example.com" from "/etc/bind/example.com.db.temp" class "IN"
dns_master_load: /etc/bind/example.com.db.temp:38: unexpected end of line
dns_master_load: /etc/bind/example.com.db.temp:37: unexpected end of input
/etc/bind/example.com.db.temp: file does not end with newline
zone example.com/IN: loading from master file /etc/bind/example.com.db.temp failed: unexpected end of input
zone example.com/IN: not loaded due to errors.


Error Creating Domain

Has anyone have a clue as to what I shoud do to fix this, I guyess I could write the .example.db myself, but will prolly screw things up more and its a bit of a pain.

thanks in advance
Mecca
 
Thanks But it didnt seem to work

Still getting the same error mate, any other ideas ?

User xxxxx created

Details

Unix User created successfully

User's System Quotas set
User's data directory created successfully
Domains directory created successfully
Domains directory created successfully in user's home

Could not write domain's db file in /etc/bind
User added to named.conf file successfully
Unable to save dns zone: named-zonecheck returned:
loading "example.com" from "/etc/bind/example.com.db.temp" class "IN"
dns_master_load: /etc/bind/example.com.db.temp:38: unexpected end of line
dns_master_load: /etc/bind/example.com.db.temp:37: unexpected end of input
/etc/bind/example.com.db.temp: file does not end with newline
zone example.com/IN: loading from master file /etc/bind/example.com.db.temp failed: unexpected end of input
zone example.com/IN: not loaded due to errors.


Error Creating Domain
 
here you go :)

here is the output for those commands :)

ls -l /etc/bind/
-rw-r--r-- 1 root root 2544 Jul 5 12:19 bind.keys
-rw-r--r-- 1 root bind 912 Sep 9 11:30 example6.com.db
-rw-r--r-- 1 root root 237 Jul 5 12:19 db.0
-rw-r--r-- 1 root root 271 Jul 5 12:19 db.127
-rw-r--r-- 1 root root 237 Jul 5 12:19 db.255
-rw-r--r-- 1 root root 353 Jul 5 12:19 db.empty
-rw-r--r-- 1 root root 270 Jul 5 12:19 db.local
-rw-r--r-- 1 root root 2994 Jul 5 12:19 db.root
-rw-r--r-- 1 root bind 1108 Sep 8 14:58 example.com.db
-rw-r--r-- 1 root bind 891 Sep 9 09:57 example2.com.db
-rw-r--r-- 1 root bind 2769 May 28 2003 named.ca
-rw-r--r-- 1 root bind 1146 Sep 9 11:25 named.conf
-rw-r--r-- 1 root bind 463 Sep 7 07:32 named.conf.backup
-rw-r--r-- 1 root bind 490 Jul 5 12:19 named.conf.default-zones
-rw-r--r-- 1 root bind 165 Jul 5 12:19 named.conf.local
-rw-r--r-- 1 root bind 574 Sep 7 05:05 named.conf.options
-rw-r----- 1 bind bind 77 Sep 7 02:43 rndc.key
-rw-r--r-- 1 root bind 1165 Sep 8 15:01 example3.com.db
-rw-r--r-- 1 root bind 906 Sep 8 15:03 example4.net.db
-rw-r--r-- 1 root bind 906 Sep 8 15:05 example5.org.db
-rw-r--r-- 1 root root 1317 Jul 5 12:19 zones.rfc1918


ls -l /etc/ | grep bind
drwxr-sr-x 2 root bind 4096 Sep 9 11:34 bind
-rw-r--r-- 1 root root 344 Jan 23 2011 bindresvport.blacklist
 
as a quick fix im editing earch domain.db file, they were like this

$TTL 14400
@ IN SOA ns1.xxxxxx1.com. hostmaster.xxxxxx,com. (
2011090802
14400
3600
1209600
86400 )

xxxxxx,com. 14400 IN NS ns1.xxxxxx1.com.
xxxxxx,com. 14400 IN NS ns2.xxxxxx1.com.
xxxxxx,com. 14400 IN NS ns3.xxxxxx1.com.
ftp 14400 IN A xx.xx.xx.xx
localhost 14400 IN A 127.0.0.1
mail 14400 IN A xx.xx.xx.xx
pop 14400 IN A xx.xx.xx.xx
smtp 14400 IN A xx.xx.xx.xx
xxxxxx,com. 14400 IN A xx.xx.xx.xx
www 14400 IN A xx.xx.xx.xx

xxxxxx,com. 14400 IN MX 10 mail



xxxxxx,com. 14400 IN TXT "v=spf1 a mx ip4:xx.xx.xx.xx ~all"

localhost 14400 IN AAAA ::1

so i placed a newline under the nameservers, like so
$TTL 14400
@ IN SOA ns1.xxxxxx1.com. hostmaster.xxxxxx,com. (
2011090802
14400
3600
1209600
86400 )

xxxxxx,com. 14400 IN NS ns1.xxxxxx1.com.
xxxxxx,com. 14400 IN NS ns2.xxxxxx1.com.
xxxxxx,com. 14400 IN NS ns3.xxxxxx1.com.

ftp 14400 IN A xx.xx.xx.xx
localhost 14400 IN A 127.0.0.1
mail 14400 IN A xx.xx.xx.xx
pop 14400 IN A xx.xx.xx.xx
smtp 14400 IN A xx.xx.xx.xx
xxxxxx,com. 14400 IN A xx.xx.xx.xx
www 14400 IN A xx.xx.xx.xx

xxxxxx,com. 14400 IN MX 10 mail



xxxxxx,com. 14400 IN TXT "v=spf1 a mx ip4:xx.xx.xx.xx ~all"

localhost 14400 IN AAAA ::1

seems to do the trick, for now :)
 
Back
Top