SunQuest
           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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 4th, 2003, 04:41 PM
Rock Rock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: ITALY
Posts: 7 Rock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Name server problem!!!

Hi,
I have a DSL connection
1 Desktop PC that is connected to a ruter (D-Link DSL 604+)
and 2 laptops connected to the ruter wireless

I have a pubblic IP 217.xxx.xxx.xxx
and the 3 computers are setted as
192.168.0.2 desktop OS win XP pro
192.168.0.3 laptop 1 OS win home editions
192.168.0.4 laptop 2 OS win home editions

what i want to do is to host my web site on my desktop pc
so..

I have bought a domain name "my-site.com" registered 2 name servers
"ns1.my-site.com"
"ns2.my-site.com" and pointed both to my public IP address

I have changed the desktop pc name to "my.site"
I installed apache2 set the httpd.conf file to listen to port 80 and the name server to "my-site.com"
and I have also set a Virtual host "my-site.com" since I'm planning to transfer to my computer a few other domain that I have and use the same IP that point different virtual host

<VirtualHost *>
ServerAdmin webmaster@my-site.com
DocumentRoot ./htdocs/my-site
ServerName my-site.com
ServerAlias www.my-site.com * .my-site.com
ErrorLog logs/my-site.com-error_log
CustomLog logs/my-site.com-access_log common
</VirtualHost>

I set the ruter to open port 80

I installed simple DNS plus and created the following records...

name..................|Type.....| Data......................................|
my-site.com........|SOA......| ns1.my-site.com [reg#######etc]
my-site.com........|NS........| ns1.my-site.com
my-site.com........|NS........| ns2.my-site.com
my-site.com........|MX........| mail.my-site.com [10]
my-site.com........|A...........| 192.168.0.2
ftp.my-site.com...|A...........| 192.168.0.2
mail.my-site.com.|A...........| 192.168.0.2
ns1.my-site.com..|A...........| 192.168.0.2
ns2.my-site.com..|A...........| 192.168.0.2
www.my-site.com|CNAME..|my-site.com

and at the end I have reversed
my-site.com........|A...........| 192.168.0.2


now on my LAN everything works just fine

but on the internet I'm able to see my pages only if I type the Pubblic IP 217.xxx.xxx.xxx but not with http://my-site.com

now if I do the nslookp I get

default server: ns1.my-site.com
address: 192.168.0.2

>my-site.com
default server: ns1.my-site.com
address: 192.168.0.2

Name: my-site.com
address: 192.168.0.2

can someone help me??? ,this is driving me nuts
what do I do wrong????
please feel free to e-mail me


Reply With Quote
  #2  
Old June 4th, 2003, 06:16 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 26 m 13 sec
Reputation Power: 797
How about naming your real domain. You might want to read
this article.

Reply With Quote
  #3  
Old June 5th, 2003, 01:38 AM
Rock Rock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: ITALY
Posts: 7 Rock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
oops sorry I never thought about that lol ...
my domain is alexia-web.com and IP is 217.133.57.201 and ty for trying to help me I really apprecciate

Reply With Quote
  #4  
Old June 5th, 2003, 03:30 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 26 m 13 sec
Reputation Power: 797
>> my-site.com........|A...........| 192.168.0.2
You cannot set the address to 192.168.0.2, as this is a non-routable IP address. You need to set this to 217.133.57.201, same with ns1 and ns2 and the other records.

For your internal network, you can probably make entries in your hosts file with the internal IP address. Do a search on this forum for "hosts file", if you're not sure of what to do with it.

Reply With Quote
  #5  
Old June 5th, 2003, 04:00 PM
Rock Rock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: ITALY
Posts: 7 Rock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
can I set only 1 record with 192.168.0.2 only for internal use??
or do I have to use this host file??
can you see my page if u type alexia-web.com??

Is it possible that my ISP won't let me use my IP to make a server??? and if yes there is any way to go around it???? like ridirecting or something like that?

Last edited by Rock : June 5th, 2003 at 05:02 PM.

Reply With Quote
  #6  
Old June 6th, 2003, 01:18 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 26 m 13 sec
Reputation Power: 797
>> Is it possible that my ISP won't let me use my IP to make a server???
The problem is in your DNS.

>> can I set only 1 record with 192.168.0.2 only for internal use??
You'd have to set a split horizon DNS setup. This is sort of tricky to set up, which is why I suggested that you use the hosts file on your internal server. If you're interested, this issue has been answered on this forum by freebsd, many times. Simply search this forum for "split horizon" to see some of the threads.

>> can you see my page if u type alexia-web.com
No I can't, because your DNS is set up incorrectly for now.

Reply With Quote
  #7  
Old June 6th, 2003, 03:34 AM
Rock Rock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: ITALY
Posts: 7 Rock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok I have changed all the A records to point to 217.133.57.201 instead of 192.168.0.2
and I also set the hosts file
127.0.0.1 alexia-web.com
192.168.0.2 alexia-web.com
192.168.0.2 www.alexia-web.com

nslookup
default server: alexia-web.com
address: 127.0.0.1

>alexia-web.com
default server: alexia-web.com
address: 127.0.0.1
Name: alexia-web.com
address: 217.133.57.201

>217.133.57.201
default server: alexia-web.com
address: 127.0.0.1
Name: alexia-web.com
address: 217.133.57.201

but still everything works only locally

on the internet I can only see my page if I type 217.133.57.201
but I can't if I type alexia-web.com

I checked and rechecked for spelling mistakes very carefully
and from the ns lookup everything seems set properly now
or is there anything else I should do?

Reply With Quote
  #8  
Old June 6th, 2003, 05:29 AM
giblert giblert is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: indonesia
Posts: 17 giblert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 30 sec
Reputation Power: 0
try to ask your dns(isp) administrator to delegate 'alexia-web.com' to your server 'ns1.alexia-web.com' running on ip address '217.133.57.201'. do the samething if you have another nameserver(slave dns). and if you want to publish your local hosting to the internet using the private ip...try 'portfwd-0.19.tar.gz'. by the way ...did you use 'bind'? why not 'djbdns'?

Reply With Quote
  #9  
Old June 6th, 2003, 02:01 PM
Rock Rock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: ITALY
Posts: 7 Rock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
what do u mean with dns(isp) ???

my internet service provider (the one that gave me the IP 217.133.57.201 and wher I connect to for DSL line)

or the one where I got the domain:
alexia-web.com
and registered the name server
ns1.alexia-web.com that is pointed to 217.133.57.201????

ps my server is on a win platform

Reply With Quote
  #10  
Old June 6th, 2003, 05:00 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 26 m 13 sec
Reputation Power: 797
I tried querying your DNS servers, but it says that the connection was refused. Is your firewall getting in the way?

Reply With Quote
  #11  
Old June 6th, 2003, 05:27 PM
Rock Rock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: ITALY
Posts: 7 Rock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
well I have port 80 and 53 open any suggestions???

I don't think so tho cause u can open the page with the IP address

opps now that I think about it tho when u checked my computer might have been off

I'm in (GMT +1 Italy) and my computer is usually on from 8am to midnight - 1 am.
If u r online during this time try checking again

Last edited by Rock : June 8th, 2003 at 10:58 AM.

Reply With Quote
  #12  
Old June 8th, 2003, 10:58 AM
Rock Rock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: ITALY
Posts: 7 Rock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
anybody can help me with this metter?
please

Reply With Quote
  #13  
Old July 3rd, 2003, 04:33 PM
RuSSo RuSSo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Brasil
Posts: 2 RuSSo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to RuSSo
Name server problem!!!

Check this : URL

Reply With Quote
  #14  
Old July 3rd, 2003, 04:47 PM
RuSSo RuSSo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Brasil
Posts: 2 RuSSo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to RuSSo
Name server problem!!!

Check this : URL

Reply With Quote
  #15  
Old July 5th, 2003, 08:11 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
Did you open the DNS ports n your router

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Name server problem!!!


Thread Tools