Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I can't configure BIND to resolve with it sub-domains.

I have local network with single server (LAN IP ADDRESS L.L.L.L and WAN: W.W.W.W) with NGINX, configured for several virtual servers.

I register 2-nd level domain (for example) I specified name servers for it: and which looks on my WAN address.

I need that domains:


and so on, were be aligned to my servers IP address.

OK, I have wrote this config in

  1 $TTL 3600
  2 @   IN  SOA (
  3             20040603
  4             3600
  5             900
  6             3600000
  7             3600 )
  9 @ IN NS
 10 @ IN NS
 12 @ IN A W.W.W.W
 13   IN  A   W.W.W.W
 15        IN A   W.W.W.W
 16        IN A   W.W.W.W
 18  IN  CNAME
 19  IN  CNAME

It works, but whether it is fully correct? (W.W.W.W - my IP address) Can I avoid 9 and 10 lines?

share|improve this question
The question is awfully vague: you do not indicate what you tried and the results you obtained. It seems you need to start with a basic BIND tutorial such as – bortzmeyer Feb 3 '13 at 16:07

1 Answer 1

up vote 3 down vote accepted

You do need the NS lines, otherwise BIND wouldn't know that it's the authoritative server.

Lines 13 through 19 could be replaced with * IN A W.W.W.W, which does exactly what it looks like.

Note 1: Many registrars no longer require two NS servers, though at least 3 is HIGHLY recommended, and there are free secondary services around (I use, no affiliation).

Note 2: Make sure you're updating that serial number EVERY TIME you change the zone file. Looks like you copied an example that was written in 2004. It's extremely common for BIND Admins to use the Serial format YYYYMMDDRR (YYYY = Year, MM = Month, DD = Day, RR = Revision).

share|improve this answer
Note 3: You're 'expire' time in your SOA is set to 1000 hours (3600000), which is just plain odd. "604800" is 1 week, and likely the most commonly used value. It's somewhat important to understand those values before changing them, as they'll effect how/if people can reach your website. – Chris S Feb 3 '13 at 16:59

Your Answer


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.