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:
  #1  
Old May 7th, 2004, 08:29 AM
ntinoas ntinoas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 4 ntinoas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DNS update TSIG expired problem

Hello everybody,

I've set up a DNS (BIND 9.2.3, in Mandrake 10) and I have the following problem:

I want to send dynamic updates in order to change the A RR of a mobile node.

This is what I've done so far:

1) Created a TSIG key using the command:

dnssec-keygen -a hmac-md5 -b 128 -n HOST hermes.thedomain.

2) Inserted it in the named.conf file like this:

key hermes.thedomain. {
algorithm hmac-md5;
secret "blablabla found in the .privet file==";
};


3) Used the following syntax in the zone section of the named.conf file:

update-policy {
grant hermes.thedomain. name hermes.thedomain. A;

or
grant herme.thedomain. self A;
or even
grant *.thedomain. self A;
};


The RR I want to update is that of hermes.thedomain.
In order to do that I use dnsjava-1.6.2 API.

Now the problem : The DNS always rejects my update because
(as mentioned in the log) the TSIG I use is expired ("Signature has expired"). Is it something with TTL?(I dont think so but I tried different values, not succesfully).

Can you help??

Thanks in advance,
Ntinoas

Reply With Quote
  #2  
Old May 7th, 2004, 08:54 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,195 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 15 h 53 m 4 sec
Reputation Power: 77
yay, an expert question! Not only have I setup dynamic update w/ TSIG, but I've even coded an IP update client that makes use of it. I can most definately help you.

Now you say that the error is the signature has expired. Assuming that is indeed the error, the problem is the SIGTIME field in the request TSIG record data. This has nothing to do with TTL. When the client forges the update request, it includes the system's current time. When the server recieves the request, part of the authentication process is making sure that packet isn't too old. The client also tells the server how long before the packet expires. If the server determines that the server system time is older than the client system time + expire offset, then it rejects the request.

Now that you know what's going on, there's a few ways to fix the problem.

1) If this is at all possible, then this is what you need to do. Sync up the client's time with the server's time.
2) increase the expire value. This is configurable in the nsupdate utility that comes with BIND.
3) This is the last resort, and it is what I had to do for my own dynamic IP clients. Code your own dynamic IP client that grabs the server's time then sends the request using the server's time. Implementation varies.

P.S. If you're having problems updating the record locally, then the SIGTIME field is not the problem and you should let me know and I'll diagnose the problem for myself.
__________________
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

Last edited by SilentRage : May 7th, 2004 at 09:03 AM.

Reply With Quote
  #3  
Old May 10th, 2004, 06:52 AM
ntinoas ntinoas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 4 ntinoas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem solved...time zone...

Thank you very much for your help!!

The problem was with the time zone of the system. While the clock was set correctly (right time for Athens), the time zone was that of New York, causing the system to shift the clock 7 hours forward and thus discarding the update request.

Ntinoas.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > DNS update TSIG expired problem


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 6 hosted by Hostway
Stay green...Green IT