x
all questions login
General DNS & Domains Dyn Email Update Clients Dyn Developer

I am trying to setup a CCTV DVR for off site viewing.The connection is via a home ISP so static IP is not offered.I am familiar with using DynDns to set up as a hostname via my netgear router,however the monitoring software does not support connection via host name,just IP.Any ideas on how I could achieve this? Is there a service to allow the hostname to convert to IP?

Any help would be much appreciated.

more ▼

asked Mar 18 at 09:10 AM

cctv1976\'s gravatar image

cctv1976
1 1 1 1

Originator not revisited the question in over a month, closing to stop the forum bot bumping it pointlessly.

Apr 18 at 06:34 PM Cry Havok ♦
10|600 characters needed characters left

2 answers:

No. The only way to get a static IP is through your ISP.

more ▼

answered Mar 18 at 09:53 AM

Cry Havok\'s gravatar image

Cry Havok ♦
51.7k 13 26 222

Ok thanks for the info

Mar 18 at 10:00 AM cctv1976
10|600 characters needed characters left

"Is there a service to allow the hostname to convert to IP?"

Sure, there is, it is simply a recursive DNS lookup. This is nslookup on Windows and dig or host on other platforms. It's easy to write a small script to get the IP address for your DynDNS hostname. Alternatively, you can just query the output of http://checkip.dyndns.org/ via a script utilizing wget or cURL.

An example for a Windows .cmd or .bat script extract:

for /f "tokens=2 skip=4" %%i in ('2^>nul nslookup http://yourhost.dyndns.org.') do set myip=%%i

(Replace yourhost.dyndns.org. with your full DynDNS hostname, plus trailing dot.)
The environment variable myip will then contain your public IP address currently associated with your DynDNS hostname.

more ▼

answered Mar 18 at 10:22 AM

RotBlitz\'s gravatar image

RotBlitz ♦
27.8k 4 14 94

10|600 characters needed characters left
Your answer
osqa.question.ask.tags.preview.show

© 1998-2011  Dynamic Network Services Inc.  -  Legal Notices  -  Privacy Policy  -  Contacts     

Powered by Qato