From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 23:14:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73A44106566B for ; Mon, 7 Apr 2008 23:14:31 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id 135C78FC13 for ; Mon, 7 Apr 2008 23:14:30 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: by duane.dbq.yournetplus.com (Postfix, from userid 1001) id 7F62327E428; Mon, 7 Apr 2008 23:14:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id 77C7E27E421; Mon, 7 Apr 2008 23:14:29 +0000 (UTC) Date: Mon, 7 Apr 2008 23:14:29 +0000 (UTC) From: D Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: Paul Schmehl In-Reply-To: <4A88BCAAE6CDFDDFF91E3E30@utd65257.utdallas.edu> Message-ID: References: <4A88BCAAE6CDFDDFF91E3E30@utd65257.utdallas.edu> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Questions Subject: Re: OT question about dns X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 23:14:31 -0000 On Mon, 7 Apr 2008 at 18:05 -0500, pauls@utdallas.edu confabulated: > Does anyone know how to use dig or some other tool to query for TXT records > in DNS? > > I'm working on implementing spf on a small domain that I maintain, and it > doesn't seem to be working (according to the validators I'm using.) I'd like > to be able to query the dns server myself, but I can't seem to find anything > on how to extract or view TXT records for a domain. > > I tried dig @server domain TXT and dig @server domain MX, but I don't get the > TXT record. %dig @what_ever_nameserver example.com txt works for me. Let's see what AOL returns: %dig @localhost aol.com txt ... ;; QUESTION SECTION: ;aol.com. IN TXT ;; ANSWER SECTION: aol.com. 300 IN TXT "v=spf1 ip4:152.163.225.0/24 ip4:205.188.139.0/24 ip4:205.188.144.0/24 ip4:205.188.156.0/23 ip4:205.188.159.0/24 ip4:64.12.136.0/23 ip4:64.12.138.0/24 ip4:64.12.143.99/32 ip4:64.12.143.100/32 ip4:64.12.143.101/32 ptr:mx.aol.com ?all" aol.com. 300 IN TXT "spf2.0/pra ip4:152.163.225.0/24 ip4:205.188.139.0/24 ip4:205.188.144.0/24 ip4:205.188.156.0/23 ip4:205.188.159.0/24 ip4:64.12.136.0/23 ip4:64.12.138.0/24 ip4:64.12.143.99/32 ip4:64.12.143.100/32 ip4:64.12.143.101/32 ptr:mx.aol.com ?all"