said:
>How does one query a DNS to get the records (such as SPF) for a
>particular site?
nslookup or dig have switches that can retrieve the records. The spf
records are type text so to see the results of Bob's handy work
[j:\tmp]nslookup -type=txt listemail.net
Server: rns2.earthlink.net
Address: 207.217.77.82
Non-authoritative answer:
listemail.net text = "v=spf1 a:relay.pair.com ~all"
Authoritative answers can be found from:
listemail.net nameserver = ns5.ns0.com
listemail.net nameserver = ns46.pair.com
ns5.ns0.com internet address = 216.92.61.30
[j:\tmp]dig listemail.net txt
; <<>> DiG 8.3 <<>> listemail.net txt
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;;
QUERY SECTION:
;; listemail.net, type = TXT, class = IN
;; ANSWER SECTION:
listemail.net. 1H IN TXT "v=spf1 a:relay.pair.com ~all"
;; AUTHORITY SECTION:
listemail.net. 1H IN NS ns5.ns0.com.
listemail.net. 1H IN NS ns46.pair.com.
;; ADDITIONAL SECTION:
ns5.ns0.com. 1d1h51m17s IN A 216.92.61.30
;; Total query time: 160 msec
;; FROM: slamain to SERVER: default -- 207.217.77.82
;; WHEN: Tue Jan 9 18:37:07 2007
;; MSG SIZE sent: 31 rcvd: 137
Have fun,
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 Warp/eCS/DIY/14.103a_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 09 |
January |
2007 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.