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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old November 22nd, 2003, 09:11 PM
drjonesuk drjonesuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 145 drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 37 m 23 sec
Reputation Power: 9
Send a message via ICQ to drjonesuk
External IP works, internet IP doesnt

Hi, im running apache webserver and, when i type in the IP i dont get the webpage, but when someone external to my network does, the webpage comes up

Im behind a alcatel router, with port forwarding. I believe it may be the hosts file i need to edit, in XP, i added a line

<IP ADDRESS> Hostname

still wont work

why can everyone else view my webpage but me on the internal network.

Thanks.

Reply With Quote
  #2  
Old November 22nd, 2003, 10:39 PM
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,193 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 14 h 27 m 56 sec
Reputation Power: 77
use your internal IP address when adding to the hosts file.
__________________
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

Reply With Quote
  #3  
Old November 22nd, 2003, 11:12 PM
drjonesuk drjonesuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 145 drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 37 m 23 sec
Reputation Power: 9
Send a message via ICQ to drjonesuk
my hosts has this line

10.0.0.1 heaven

how do i read the hosts file

i tried nbtstat -R

is that right, when does win xp read the hosts. i did restart once.

Reply With Quote
  #4  
Old November 23rd, 2003, 07:09 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,193 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 14 h 27 m 56 sec
Reputation Power: 77
nbtstat has nothing to do with the hosts file.

Does this link work:
http://10.0.0.1

Reply With Quote
  #5  
Old November 23rd, 2003, 07:14 AM
drjonesuk drjonesuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 145 drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 37 m 23 sec
Reputation Power: 9
Send a message via ICQ to drjonesuk
YES 10.0.0.1 views the webpage

when i try and type the static IP nothing views..

remember i have port forwarding on for port 80 on the alcatel 4 port router.

everyone else can view my website by typing static ip

i want to type in

http://static ip and view it, it times out

everyone ELSE can view it

thanks

Reply With Quote
  #6  
Old November 23rd, 2003, 09:29 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,193 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 14 h 27 m 56 sec
Reputation Power: 77
With some routers you will never be able to enter the external IP and view the website from within the network. You must use the internal IP. So you must do one of 2 things. You must use the internal IP to point to your website domain in your hosts file like so:

10.0.0.1 www.mysite.com

Or setup BIND using "views" so that it returns the external IP when resolving external requests, and returns the internal IP when resolving internal requests.

Last edited by SilentRage : November 23rd, 2003 at 09:40 AM.

Reply With Quote
  #7  
Old November 23rd, 2003, 09:34 AM
drjonesuk drjonesuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 145 drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 37 m 23 sec
Reputation Power: 9
Send a message via ICQ to drjonesuk
Ok thanks

ill try adding that line 10.0.0.1 <IP address)

i must use ip address, as i dont yet own a domain name onthe outside

when does the host file get read? i edited it just then?

do i need to restart or can i do it without that, and also BIND

im looking up how i can use bind now

its really annoying not being able to view my webpage like everyone else...

thanks

Reply With Quote
  #8  
Old November 23rd, 2003, 09:38 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,193 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 14 h 27 m 56 sec
Reputation Power: 77
XP reloads the hosts file when it detects that it has changed. It doesn't take long for it to take effect. I've also tried adding a line to the hosts file something like this:

192.168.1.1 router

So that I can access my router via the name rather than IP, but for some reason that didn't work. Perhaps I mistook something, dunno. But for sure whenever I use a proper domain (with a period and extension) it works fine.

So just make up a domain and use it to access your site.

Reply With Quote
  #9  
Old November 23rd, 2003, 09:44 AM
drjonesuk drjonesuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 145 drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level)drjonesuk User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 37 m 23 sec
Reputation Power: 9
Send a message via ICQ to drjonesuk
OK

Ok that worked

www.domainname.com worked pointing to IP 10.0.0.1

and

10.0.0.138 router

WORKED

now i type in router and it connects


as for allowing the ip to work, i cant get that working yet, ive played around with the hosts file a bit

thanks for your help you got something right!!

Reply With Quote
  #10  
Old December 15th, 2003, 05:16 PM
jandl jandl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 4 jandl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: OK

Quote:
Originally posted by drjonesuk
Ok that worked

URL worked pointing to IP 10.0.0.1

and

10.0.0.138 router

WORKED

now i type in router and it connects


as for allowing the ip to work, i cant get that working yet, ive played around with the hosts file a bit

thanks for your help you got something right!!


I don't have BIND views implemented yet, so I had to set up DNS on my workstation with the private IPs in the zone file for the domain rather than the public IPs. It's a real PITA to do it that way, especially if you have multiple domains hosted and have to make changes occasionally, but it works.

I am going to implement "views" since it is so much easier and probably more secure than having DNS running all over the place.

Reply With Quote
  #11  
Old December 17th, 2003, 01:38 PM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
you can not go out a NAT firewall and come back in!

Reply With Quote
  #12  
Old December 17th, 2003, 02:04 PM
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,193 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 14 h 27 m 56 sec
Reputation Power: 77
It depends on the router's routing table. On my linksys router for instance I can connect to my public IP. It's just a matter of me sending a packet to the router's public interface, and the router routing the packet back to my computer on the private interface.

Reply With Quote
  #13  
Old December 17th, 2003, 02:58 PM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
*cough* if its not in your routers routing table to get back to your PC or the server thats on the same network you got bigger problems. let me refraze though this is a firewall not a routing issue that will keep this from working PIX, Bordermanager, sonicwall, ISA, etc it will not work.

Reply With Quote
  #14  
Old December 17th, 2003, 03:38 PM
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,193 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 14 h 27 m 56 sec
Reputation Power: 77
I'm not quite sure what you're saying. All I know is that you said "you can not go out a NAT firewall and come back in!". By this statement I'm guessing you are saying that you CANNOT connect to your router's public IP and expect to connect to a server on the private network.

And yet, on my linksys router this is what happens.

123.45.67.89 = internet client
192.168.1.100 = network client
192.168.1.2 = network web server
192.168.1.1 = router private IP
68.51.39.58 = router public IP

1) 123.45.67.89 connects to 68.51.39.58 port 80
2) router forwards request to 192.168.1.2 port 80

1) 192.168.1.100 connects to 68.51.39.58 port 80
2) router forwards request to 192.168.1.2 port 80

1) 192.168.1.100 connects to 192.168.1.1 port 80
2) router accepts the request and asks for a password

Reply With Quote
  #15  
Old December 17th, 2003, 04:00 PM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)