Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

After upgrading from Ubuntu 8.04 to 10.04 my DNS isn't working properly anymore.

I keep getting this error when I run named-checkzone example.com /var/cache/bind/example.com.zone.db

zone example.com/IN: NS 'mx002a.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.

in /var/cached/bind/example.com.db

$TTL 3D
@       IN      SOA     mx002a.example.com. chantra.example.com. (
                        200608081       ; serial, todays date + todays serial #
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        4W              ; expire, seconds
                        1D )            ; minimum, seconds
;
;
mx002a.example.com IN A 192.168.85.19
example.com. IN NS mx002a.example.com.
mx001           60 IN A 192.168.85.17
mx001           60 IN A 192.168.85.18
share|improve this question

1 Answer 1

up vote 2 down vote accepted

You must either specify the FQDN of everything in the zone file, or set $ORIGIN. Also, if you specify an FQDN, you must specify it with a trailing dot (this is why it doesn't see your A record for mx002a.example.com).

To fix it:

$TTL 3D
$ORIGIN example.com.

@       IN      SOA     mx002a.example.com. chantra.example.com. (
                        200608081       ; serial, todays date + todays serial #
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        4W              ; expire, seconds
                        1D )            ; minimum, seconds
;
;
@               IN NS mx002a.example.com.
mx002a          IN A 192.168.85.19
mx001           60 IN A 192.168.85.17
mx001           60 IN A 192.168.85.18

@ is a shortcut for just the origin.

share|improve this answer
    
That did the trick. It works. Thanks for your quick support! –  Johan Barelds Oct 16 '12 at 5:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.