syntax error in MX record
Phil Howard
phil-nsd-users at ipal.net
Wed Aug 18 08:49:37 UTC 2004
On Tue, Aug 17, 2004 at 12:52:45PM +0200, Miek Gieben wrote:
| [On 16 Aug, @20:35, Phil wrote in "syntax error in MX record ..."]
| > Here's one that worked in NSD 1 but breaks in NSD 2:
| >
| > @ 12h IN MX 0 @
| >
| > It seems that the check on valid characters for the target host name for
| > the MX doesn't include the "@". I wonder if it works for ".". I worked
| > around this for now.
|
| here is a patch against 2.1.2. This should add the usage of @ in the
| rdata of any type. I only tested it MX and NS,
It worked in my test for MX. Thanks. This makes it easy for a single
common zone file to be used for many zones, without having to add an
extra name for the MX host.
$TTL 12h
@ 12h IN SOA @ hostmaster 272965334 3h 30m 10d 12h
@ 12h IN NS @
@ 12h IN A 10.1.2.3
@ 12h IN MX 0 @
www 12h IN A 10.1.2.3
It also worked in PTR (which I expected from reading the patch). Useless
there, but at least it's universal.
@ 12h IN PTR @
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
More information about the nsd-users
mailing list