DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old December 14th, 2003, 10:20 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
TSIG signature data

I'm trying to code a DNS UPDATE dynamic IP client for my DollarDNS using TSIG authentication. I continuously get NOTAUTH/BADSIG responses to my initial update request. This means that my signature data in the TSIG RR used for authentication is wrong. After extensive testing, I've confirmed that my base64 decoding, md5 (rfc1321), and hmac (rfc2104) routines are all producing accurate results. So since I know the key is correct and the calculations are correct, then all that is left is incorrectly formatted message data whose specifications is found in the TSIG rfc (rfc2845) section 3.4.1.

There is a curious omission from the TSIG rfc however. Since my dynamic IP client could be sending many packets in a single session (2 per configured zone) and cause I want reliability, I chose TCP as the transport for the exchange. The RFC doesn't mention if the 2 byte packet length before each DNS packet is included in the "whole and complete DNS message in wire format". This 2 byte packet length is NOT included in UDP requests, so it is a matter of debate on whether it is included in the message when TCP is used.

I would like to see some documentation that state whether this 2 byte length is included in the message. There could be more than one thing wrong with the message I pass to the hmac_md5 routine so just testing with and without the 2 byte packet length doesn't tell me anything.

P.S. I AM able to update records on the server using the nsupdate utility that comes with BIND so I know it is not a server configuration problem.

P.S.S. If you are a programmer and is interested in this project, C (not C++) code is available.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #2  
Old December 15th, 2003, 08:34 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
Break through! I found out that I only had a minor mistake where I incorrectly calculated the size of the message data to be digested with the key.

The 2 byte length descriptor for a TCP packet is NOT included in the MD5 digest for TSIG authentication.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > TSIG signature data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway