473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Service keeps using the same IP address

We have an application that uses .Net remoting to allow remote servers to
connect to a master server to synchronize data. The format of the url we use
to the master server looks like “tcp://master.company.com/wilson.server”. If
the IP address of the master server changes the remote server keep using to
old IP address until they are restarted.

The A rescored in the DNS server has a Time To Live setting of 1 hour. Why
does the remote service have to be restarted before it starts using the new
IP address? Is there anything I can do force remoting to refresh it’s local
IP address cache?

Sep 21 '06 #1
2 1334
Do yourself a favor and use the IP address in the uri. The problem you are
experiencing is due to the nature of DNS. DNS records are cached with an
expiration datetime, and will only be refreshed with they expire, by
querying a DSN server. This does not, however, guarantee that the DNS server
has refreshed *its* cached record. These changes can take days to propogate.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.

"Kim Floyd" <Ki******@discussions.microsoft.comwrote in message
news:51**********************************@microsof t.com...
We have an application that uses .Net remoting to allow remote servers to
connect to a master server to synchronize data. The format of the url we
use
to the master server looks like "tcp://master.company.com/wilson.server".
If
the IP address of the master server changes the remote server keep using
to
old IP address until they are restarted.

The A rescored in the DNS server has a Time To Live setting of 1 hour.
Why
does the remote service have to be restarted before it starts using the
new
IP address? Is there anything I can do force remoting to refresh it's
local
IP address cache?

Sep 21 '06 #2
Kevin,

Thanks for responding. I have used nslooup on the remote server to make
sure the DNS server it is using has the correct IP address. I have also
checked the time to live value of the DNS record to verify that it is set for
24 hours. We changed the IP address four days ago but the remote service
keeps using the old address. I think there is something else going on. I am
using Activator.GetObject to create the remote object. Does the Activator
class keep a cash of some kind?
"Kevin Spencer" wrote:
Do yourself a favor and use the IP address in the uri. The problem you are
experiencing is due to the nature of DNS. DNS records are cached with an
expiration datetime, and will only be refreshed with they expire, by
querying a DSN server. This does not, however, guarantee that the DNS server
has refreshed *its* cached record. These changes can take days to propogate.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.

"Kim Floyd" <Ki******@discussions.microsoft.comwrote in message
news:51**********************************@microsof t.com...
We have an application that uses .Net remoting to allow remote servers to
connect to a master server to synchronize data. The format of the url we
use
to the master server looks like "tcp://master.company.com/wilson.server".
If
the IP address of the master server changes the remote server keep using
to
old IP address until they are restarted.

The A rescored in the DNS server has a Time To Live setting of 1 hour.
Why
does the remote service have to be restarted before it starts using the
new
IP address? Is there anything I can do force remoting to refresh it's
local
IP address cache?


Sep 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
4
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading...
3
by: lk | last post by:
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service...
0
by: pwilliams | last post by:
NCOALink Change of Address Verification Each year over 40 million Americans change their mailing addresses. This change is equivalent to every person in California deciding to change addresses...
2
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.