[Pdns-users] OT: sytax of dig
Volker Goetz
goetz at sectionone.de
Wed Jun 16 13:18:50 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Mittwoch, 16. Juni 2004 15:09 schrieb Bob Lockie:
> I want to return all MX records but I can't get dig to work.
>
> $ dig -p 5300 @localhost lockie.ca -t MX
>
> The man page says I can use -t for type or just specify it as the last
> parameter but it doesn't work either way (it returns nothing).
>
> mysql> select * from records where domain_id=244;
> +------+-----------+------+------+--------------------------------------
>
> | id | domain_id | name | type | content
> +------+-----------+------+------+--------------------------------------
>
> | 1574 | 244 | | MX | mail .lockie.ca
>
> From the pdns in monitor mode, I get a
> Authoritative NXDOMAIN to 192.168.1.100 for 'lockie.ca' (MX)
> but no answer.
Correct. You need to set the name for the record (lockie.ca) in the name
column. That's often overseen as in bind zone files one does not need to
repeat the name on every record.
- --
Best regards
Volker Götz
- ---------------------------------------------------------------
section(one Mail goetz at sectionone.de
Dipl.-Inform. Univ. Web http://www.sectionone.de/
Volker Götz Tel. +49 30 / 40 00 67 9-0
Rosa-Luxemburg-Straße 15 Fax +49 30 / 40 00 67 9-15
D-10178 Berlin PGP 4FEB1C34 @ wwwkeys.de.pgp.net
- ---------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA0Ei6WM9gHU/rHDQRAtFbAJ4xO+IAwU/IHwkwmLWDFO0cTMCooACgjK79
u8Jzd9SjQ2k1WIz9z45rxyY=
=Nx2T
-----END PGP SIGNATURE-----
More information about the Pdns-users
mailing list