Networking Forums

Networking Forums > Computer Networking > Linux Networking > Dynamic DNS and website development

Reply
Thread Tools Display Modes

Dynamic DNS and website development

 
 
Adrian P. Ireland
Guest
Posts: n/a

 
      01-21-2004, 04:34 PM
I have a dynamic IP address, this changes every day or so depending
on when my ADSL router has to reconnect.

I have a hostname from dyndns services that is updated to point to my
changing IP address when required.

I have a website on my internal network that is accessible from the Internet
using the dynamic hostname.

When I am testing things on the website from my internal network I use the IP
address from my internal network or the hostname from my internal network
which is different from the IP address and host names seen from the Internet.

Most of the stuff on my website does not need to refer to the the full address
like; http://host.domain.org/dir/file.html but some do. How can I use the
external address like host.domain.org from the internal network?

Do I have to change the hostname on my internal network?
Do I set something in my httpd.conf file?
Do I set something in my own dns server?

Thanks alot,

Adrian
--
I hate spam
rever(es) the last bit to respond - aireland yata net : eircom
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      01-22-2004, 03:55 AM
On Wed, 21 Jan 2004, Adrian P. Ireland <(E-Mail Removed)> wrote:
> I have a dynamic IP address, this changes every day or so depending
> on when my ADSL router has to reconnect.
>
> I have a hostname from dyndns services that is updated to point to my
> changing IP address when required.
>
> I have a website on my internal network that is accessible from the Internet
> using the dynamic hostname.
>
> When I am testing things on the website from my internal network I use the IP
> address from my internal network or the hostname from my internal network
> which is different from the IP address and host names seen from the Internet.
>
> Most of the stuff on my website does not need to refer to the the full address
> like; http://host.domain.org/dir/file.html but some do. How can I use the
> external address like host.domain.org from the internal network?
>
> Do I have to change the hostname on my internal network?
> Do I set something in my httpd.conf file?
> Do I set something in my own dns server?


Easiest is to put private IP and public name in hosts file of client.
Then you could access public name of server from private LAN via private
IP, but public would still be able to access it by public DNS IP.

I actually have wildcard NameVirtualHost * for multiple public dynamic DNS
names (no-ip.com) and a default nameless vhost to log worms. So I can
locally access public content by mapping my public name to private IP in
/etc/hosts, and private content by mapping a private name to that IP with
local DNS. That way I can still lookup the public IP for my public name
using 'host' (or nslookup), which always uses DNS.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
Synflex
Guest
Posts: n/a

 
      01-25-2004, 02:45 PM
You could simply add an emtry to /etc/hosts with your dyndns pointing to
your internal ip.

Asumming your dynamic dns is dynamic.dyndns.org, external ip to be anything,
internal ip 192.168.0.10.

% cat /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.0.10 dynamic.dyndns.org dynamic

With this (if properly setup), by default should return 192.168.0.10
whenever your machine is looking for dynamic.dyndns.org, while external
machines will access dynamic.dyndns.org with your dynamic IP.

Hope this helps.


Regards,
Synflex



"Adrian P. Ireland" <(E-Mail Removed)> wrote in message
news:fpp2e1-(E-Mail Removed)...
> I have a dynamic IP address, this changes every day or so depending
> on when my ADSL router has to reconnect.
>
> I have a hostname from dyndns services that is updated to point to my
> changing IP address when required.
>
> I have a website on my internal network that is accessible from the

Internet
> using the dynamic hostname.
>
> When I am testing things on the website from my internal network I use the

IP
> address from my internal network or the hostname from my internal network
> which is different from the IP address and host names seen from the

Internet.
>
> Most of the stuff on my website does not need to refer to the the full

address
> like; http://host.domain.org/dir/file.html but some do. How can I use the
> external address like host.domain.org from the internal network?
>
> Do I have to change the hostname on my internal network?
> Do I set something in my httpd.conf file?
> Do I set something in my own dns server?
>
> Thanks alot,
>
> Adrian
> --
> I hate spam
> rever(es) the last bit to respond - aireland yata net : eircom



 
Reply With Quote
 
Adrian P. Ireland
Guest
Posts: n/a

 
      01-26-2004, 07:44 PM
Synflex <(E-Mail Removed)> wrote:
> You could simply add an emtry to /etc/hosts with your dyndns pointing to
> your internal ip.
>
> Asumming your dynamic dns is dynamic.dyndns.org, external ip to be anything,
> internal ip 192.168.0.10.
>
> % cat /etc/hosts
>
> 127.0.0.1 localhost.localdomain localhost
> 192.168.0.10 dynamic.dyndns.org dynamic
>

Thanks for all the replies. I have tried the modification to
/etc/hosts and this works fine.

127.0.0.1 localhost
127.0.2.3 localhost.localdoamin
10.0.0.4 blab.internal.org ahost
10.0.0.4 dynamic.dyndns.org

Adrian
--
I hate spam
rever(es) the last bit to respond - aireland yata net : eircom
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WiFi Embedded development kit john1987 Wireless Internet 0 02-23-2011 08:10 PM
Custom Software Development VB Wireless Internet 0 05-25-2007 03:12 PM
TCP development framework ValerioZ Linux Networking 1 10-21-2004 02:06 PM
ddclient to update dynamic DNS entries at a dynamic DNS service Larry Cohen Linux Networking 1 09-12-2004 01:47 AM
appropriate iptables rules for a website with dynamic DNS Wenjie Linux Networking 0 09-08-2003 11:37 AM



1 2 3 4 5 6 7 8 9 10 11