troubleshooting Question

BIND9 rejects my master file because "no TTL specified"...

Avatar of ivanvega
ivanvega asked on
Linux Networking
11 Comments2 Solutions5838 ViewsLast Modified:

Please take a look at my named.conf file:

options {
        directory "/var/cache/bind";
        pid-file "/var/run/bind/";

        auth-nxdomain no;
zone "localhost" {type master; file "/etc/bind/db.local";};
zone "" {type master; file "/etc/bind/db.127";};
zone "" {type master; file "/etc/bind/db.0";};
zone "" {type master; file "/etc/bind/db.255";};
zone "mydomain" in {
        type master;
        file "db.mydomain";
        allow-update {;};

and db.mydomain:

$TTL    3h
mydomain. IN SOA dns.mydomain. root@mydomain. (
        1     ; Serial
        3h    ; Refresh after 3 hours
        1h    ; Retry after 1 hour
        1w    ; Expire after 1 week
        1h  ) ; Negative caching TTL of 1 hour
mydomain.  IN NS  dns.mydomain.
localhost.mydomain.  IN A
dns.mydomain.       IN A  IN PTR dns.mydomain.

"named -g" runs but throws this error:

db.mydomain:1: no TTL specified; zone rejected
zone mydomain/IN: loading master file db.mydomain: no ttl

As you can see, I do have a TTL of 3h so I don't know what's going bad...

Any help is appreciated!

- Ivan

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros