troubleshooting Question

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

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

Please take a look at my named.conf file:

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

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

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 127.0.0.1
dns.mydomain.       IN A 192.168.0.101
101.0.168.192.in-addr.arpa.  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
ASKER CERTIFIED SOLUTION
jar3817

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