TXT record error

I've just setup my qmailtoaster install, and I've generated a domain key.  When I try to start named, I get an error:

[root@websmtp01 named]# service named start
Starting named:
Error in named configuration:
/var/named/chroot/var/named/localhost.zone:11: unknown RR type 'private._domainkey'
dns_master_load: /var/named/chroot/var/named/localhost.zone:11: syntax error
zone localhost/IN: loading master file /var/named/chroot/var/named/localhost.zone: unknown class/type
_default/localhost/IN: unknown class/type

Here's what my localhost.zone file looks like, I've taken out the rest of the domain key for security reasons....can anyone tell me what's wrong with the TXT record?


$TTL    86400
@               IN SOA  @       root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
 
                IN NS           @
                IN A            127.0.0.1
                private._domainkey      IN      TXT     "k=rsa; p=MEwwDQYJKAQAB"
~

Open in new window

JWeb AdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
Check if "_" before domainkey is accepted character
0
ravenplCommented:
Move "private._domainkey" to start of the line, so no whitespaces before the name.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JWeb AdminAuthor Commented:
OK - when trying to start named, I get the following error when I tail -f /var/log/messages.  I've also checked to verify that the files exist and the symlinks exist:


Feb 11 03:58:22 websmtp01 named[3547]: loading configuration: invalid file
Feb 11 03:58:22 websmtp01 named[3547]: exiting (due to fatal error)
Feb 11 03:58:32 websmtp01 named[3584]: starting BIND 9.3.4-P1 -u named
Feb 11 03:58:32 websmtp01 named[3584]: found 2 CPUs, using 2 worker threads
Feb 11 03:58:32 websmtp01 named[3584]: loading configuration from '/etc/named.conf'
Feb 11 03:58:32 websmtp01 named[3584]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 11 03:58:32 websmtp01 named[3584]: listening on IPv4 interface eth0, 10.9.3.245#53
Feb 11 03:58:32 websmtp01 named[3584]: could not configure root hints from '/etc/db.cache': invalid file
Feb 11 03:58:32 websmtp01 named[3584]: loading configuration: invalid file
Feb 11 03:58:32 websmtp01 named[3584]: exiting (due to fatal error)

Open in new window

0
JWeb AdminAuthor Commented:
Sorry about the second post - I figured it out ;-) Thanks for your help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.