LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2011, 07:03 PM   #1
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
DNS TXT with multiple key-value pairs


Hello Forum:


I am trying to figure out how I can have a TXT dns record having more than one key-value pair for the same domain (website.com, for example). The problem is that if I have two separate TXT records, only the first one gets returned when doing a dns query on it.

I am using BIND 9.

so, how can I place these two key-value pairs on one TXT record:

TXT "v=spf1 ip4:237.43.37.0/24 ip4:13.434.89.0/26 ip4:82.65.77.242 ~all"

and

TXT "google-site-verification=cadfasklfjasdfsdfJJDSDFSDfdska3kasfjsdf903"

in just one TXT record.


When doing a query, this is what I get:

dig @localhost txt website.com

:
:

;; QUESTION SECTION:
;website.com. IN TXT

;; ANSWER SECTION:
website.com. 86400 IN TXT "v=spf1 ip4:237.43.37.0/24 ip4:13.434.89.0/26 ip4:82.65.77.242 ~all

;; AUTHORITY SECTION:
:
:
:

Pretend those IPs and the google value are real ones.

Thanks.
--Willie
 
Old 03-04-2011, 08:34 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Here is a page that may be of help. It suggests that you can enclose multiple items either in quotes or parentheses.

Regards,

Fordeck
 
Old 03-04-2011, 11:12 AM   #3
williebens
Member
 
Registered: Jan 2008
Posts: 88

Original Poster
Rep: Reputation: 16
Thanks fordeck.

I will give it a try and see what happens.

--Willie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND DNS - MX, TXT and SPF records when hosting multiple domains on same machine? icebrian Linux - Networking 3 05-02-2011 09:21 AM
ssh best practice: key pairs per user or OS? Other considerations? mrtwice Linux - Security 2 04-20-2010 10:41 PM
Public/Private Key Pairs Kissell Linux - Security 3 01-24-2009 05:36 AM
Big Brother? Key Pairs? cwizardone Slackware 1 02-27-2007 07:02 PM
C++ STL key/value pairs strangely refuse to be eased!! nyk Programming 5 06-18-2004 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration