[nsd-users] zone record for non www address

Stephane Bortzmeyer bortzmeyer at nic.fr
Tue Nov 17 10:01:45 UTC 2015


On Fri, Nov 13, 2015 at 07:23:23AM +0000,
 mohammad abedini <abedini1984 at yahoo.com> wrote 
 a message of 32 lines which said:

> I have one question about DNS zonehow can config my DNS zone for
> replay non www record to www record??

Frankly, your question is not clear at all.

To reply, I'll assume you hold example.com, that the HTTP server has
the address 2001:db8:1::42 and that you want <http://example.com/> to
work the same as <http://www.example.com/> If so, the DNS part of the
configuration is to have in the zone file:

@   IN   AAAA   2001:db8:1::42

In zone file syntax, "@" means the apex, the top of the zone (here,
example.com).

The HTTP part of the setup is left as an exercise.



More information about the nsd-users mailing list