Instead of :  " IN TXT ""v=spf1 mx ~all"""

Try

" IN TXT " & chr(34) & "v=spf1 mx ~all" & chr(34)


----- Original Message ----- From: "Daniel Grotjan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 20, 2005 11:43 PM
Subject: [Declude.JunkMail] OT: WMI scripting DNS TXT problems



I'm trying to automate my dns zone creation and I am running into a problem with TXT records. I'm using WMI and when ever I create an SPF record (or any TXT record) it automatically adds a line break at the end of the record. Does anyone have any experience with this or have any idea what would cause this? The line below is the one I'm using to create the record.

objRR.CreateInstanceFromTextRepresentation CONST_SERVER, strZoneName, strZoneName & " IN TXT ""v=spf1 mx ~all""", objOutParam

I've tried this every different way I can and I always get the same result. In the zone file, it looks like this

@                       TXT ( "v=spf1 mx ~all"
                       "" )

Also, does anyone know if having this break at the end will cause problems with any SPF implementations?

-Daniel
---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.
---
This email has been scanned for possible viruses by Declude Antivirus.
For more information on Declude Antivirus, Visit www.declude.com



--- This email has been scanned for possible viruses by Declude Antivirus. For more information on Declude Antivirus, Visit www.declude.com

---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.

Reply via email to