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 01-08-2008, 11:40 PM   #1
james shields
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
nsupdate fails with "could not read rdata"


Last year I wrote a bash script that runs nsupdate on a regular basis. It's something like a poor-mans dynamic DNS script that I threw together for a specific purpose. It ran flawlessly for several months, but now it's not working anymore. The only feedback from my script was:

; Communication with server failed: timed out

Investigating, I ssh-ed into the server itself and manually ran each command as follows:

# nsupdate
> server ns.mydomain.com
> zone mydomain.com
> update delete myclient.mydomain.com. A
> update add myclient.mydomain.com. 150 A
could not read rdata

At this point it appears that whatever causes the "could not read rdata" message also causes my client to time out. Google isn't telling me much, so hopefully there's an expert on the board who would understand this message or have troubleshooting hints? I tried nsupdate -d with no luck.

thanks,
James

btw, both server and client are running CentOS 4.4
 
Old 01-09-2008, 03:39 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
Quote:
> update add myclient.mydomain.com. 150 A
Should you add the new IP address in the above command?
Code:
> update add myclient.mydomain.com. 150 A xx.xx.xx.xx
 
Old 01-09-2008, 02:02 PM   #3
james shields
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Very clever! :-O

Okay, when I do that it works from the server, but still not from the client machine. It pauses for a few seconds after "send", and then tells me "Communication with server failed: timed out"

Here's the output:

]# nsupdate -k /opt/ddns/xxxx.xxxxx.com.+157+09682.key -d
Creating key...
> server ns.xxxxx.com
before getaddrinfo()
> zone xxxxxx.com
> update delete xxxxx.xxxxxx.com. A
> update add xxxxxx.xxxxxx.com. 150 A 1.2.3.124
> show
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 0
;; flags: ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; UPDATE SECTION:
xxxxx.xxxxxx.com. 0 ANY A
xxxxxx.xxxxxxxx.com. 150 IN A 1.2.3.124

> send
; Communication with server failed: timed out



Any ideas??





Quote:
Originally Posted by bathory View Post
Should you add the new IP address in the above command?
Code:
> update add myclient.mydomain.com. 150 A xx.xx.xx.xx
 
Old 01-10-2008, 02:30 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
Quote:
; Communication with server failed: timed out
It could be a network or firewall problem
 
  


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
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 03:19 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
"cp -p" fails with "cp: setting permissions for `/home/svbld/t': Invalid argument" mkhesin Red Hat 1 02-28-2007 12:57 AM
Edit "read-only" /etc/fstab from "System Recovery#" (without boot cd?) charlweed Linux - General 1 12-31-2006 05:57 PM
wget fails when i want to download from a URL which contains "=" or "&' noware Linux - General 7 11-13-2005 07:35 AM


All times are GMT -5. The time now is 12:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration