Solved

DNS What is my real IP address

Posted on 2004-10-19
28
285 Views
Last Modified: 2010-04-20
I have been reading all over the place and Ithink I am just starting to confuse myself.  I want to run Plesk and my registrar allows advance DNS set up.  So I bought a domain, set up the A records with an IP address and then installed Plesk.  Now her e is my problem.....  If on the host computer I go to whatismyip .com it tells me my IP is 68.xxx.xxx.xxx but I have it behind a firewall and that is telling me my IP is 192.xxx.xxx.xxx(I was told anything that starts 192 is private).  So right now I have been doing alot of trial and error with no good results.  Now my questions are....

How di I determin what IP address I need to put in the advace DNS (from registrar)

Will that propigate to Plesk?

Also any step by step links to setting up default DNS template in Plesk would be nice.

There is more then one questions so I need to raise the points for total.

Thanks

IC
0
Comment
Question by:InnerChild
  • 17
  • 11
28 Comments
 
LVL 2

Author Comment

by:InnerChild
ID: 12352150
oops if it matter I am running this on Fedora 2
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12352171
also I have gone through all the Plesk docs on there website and it didn't help :D

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12352556
You use your public IP address (68.xxx.xxx.xxx) for external DNS.  This will route internet traffic destined for your domain to your router/firewall.  You then have to configure your router/firewall to forward incoming traffic to the appropriate internal IP address.  For example, if you are running a web server with a LAN address of 192.168.20.100, you would configure the router/firewall to route all incoming traffic on port 80 (the default port for http traffic) to 192.168.20.100 on your LAN.  Of course, your web server has to be configured to listen for and respond to port 80 traffic.
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12352635
OK I think I hve done that part right.  In my router control panel it has "virtual server" that I set up as

name: Virtual Server HTTP
private IP 92.xxx.xxx.xxx
Protocol Type  TCP
Private port 80
Public port 80
enabled Always

I think thats right at least.....

LAter

IC
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12352666
sorry that IP should be 192.xxx.xxx.xxx but I think you got that :P

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12352788
That all looks right.  Sounds like you're on the right track.
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12352810
OK then maybe you can answer this.  The Advance DNS that I set up from the registrar, the IP I should put there when setting up the A records should be the public IP? (68.xxx.xxx.xxx) or private IP? (192.xxx.xxx.xxx)

I think that will go a good way into helping me out.  Only problem is that I'll have to sit on whatever changes I make for 3 days while I wait and see if it works.

LAter

IC
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12352994
I have a domain that was registered that I have been trying to get to work, kind of a testing domain.  This is interesting...... In IE if I look for orangelife .ca it comes up Gateway Timeout but if I try it in Firebird I get the default page for the domain...... Any thoughts?(This is on the local network, I can't see it from a computer outside the network)

Also in IE I can access the ftp on it as well.... man this gets more and more confusing.....

LAter

IC
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12353019
The last things I want to add is   Below is what I created for my nameservers at my registrars, I think it is good to.
HOSTNAME
ns1.mydomain.net          A                   68.xxx.xxx.xxx       
        
                                    
ns2.mydomain.net        A               68.xxx.xxx.xxx


LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12353045
The A (host) records should be pointed at the public IP address (68.xxx.xxx.xxx).  You don't need to create ns1 & ns2.yourdomain.net unless you are planning on running your own public DNS server.  Since your registrar offers DNS service, I would suggest you use that.  You'll just need to set up a host (A) record for www.yourdomain.net pointing to 68.xxx.xxx.xxx.
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12353114
OK I am looking at doing hosting for multiple domains for myself and some other people so I think that would make me a public server, right? Sorry about the newbieishness of all this I am a web developer who is trying to expand my brain.

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12354215
Your web server will be publicly available, of course, but that doesn't mean you have to run a DNS server as well.  You can do so if you wish, but since you're learning, you may want to keep it simple for now and use your registrar's domain service or one of the free (and easy to use) DNS services that are available, like www.zoneedit.com or www.dyndns.com.  It just makes for one less thing you have to learn.  Once you are comfortable with your web server, you can add other things, like a DNS server, a mail server, etc.  This is just one possible way to proceed :)
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12358506
thats why i was working with Plesk because it has all that built in so I can do it now and learn as I go.  Plesk has DNS, Mail, and all that good stuff.

So what I think I will do, is now that I know the DNS is set up right with my registrar I am going to reinstall Plesk.  It is suppose to be able to autodetect things but I am wonderiing if becuase I had it set up wrong before it might have not working properly all along.

I'll get back to you in a couple of hours.

Thanks

LAter

IC
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12359636
OK so I have reinstalled everything and if I try to go to my test domain I get "Bad Gateway"  code=DNS Host not found.  After I reinstalled Plesk it grabbed the IP 192.xxx.xxx.xxx  I set that computer in the DMZ so why isn't it picking up the pubic ip?

Any thoughts?  Think I might need to manually change the named.conf?

LAter

IC
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 2

Author Comment

by:InnerChild
ID: 12359657
I have tried to manually add the pubilc IP but I don't know how to determin its IP Mask.  I have tried 225.225.255.0 (which is the same as the private mask)

Maybe that would help?

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12359664
I'm not overly familiar with Plesk.  Can you provide a domain name so that I can check out the DNS?
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12359887
sure fuelinteractive .net
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12360166
So it looks like it will work without the ""www" but it is also breaking with ftp, webmail, etc...

What I ended up doing is changing all the DNS that it created when I created the domain.  I changed anything that was pointing the the private IP.  The www, ft, webmail was pointed to te domain so I left that alone, but now it doesn't work.

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12360178
The name servers for your domain (external traffic) are ns1.webnames.ca and ns2.webnames.ca, but there are no DNS records for your domain on those DNS servers (hence the error message - "Bad Gateway"  code=DNS Host not found).  At this point, you can't get traffic because browsers can't find your server.

To use these name servers, you need to add the appropriate DNS records to them - not your own internal name server - (see www.maradns.org/tutorial/recordtypes.html for an overview of the main DNS record types).  For example, if you want people to be able to browse your website, you need to add a host (A) record for www.fuelinteractive.net that points to the public address of your web server (68.xxx.xxx.xxx).  If you want to run a mail server, you have to add a host record for your mail server (ie. mail.fuelinteractive.net) AND a Mail Exchange (MX) record to point fuelinteractive.net at mail.fuelinteractive.net.

If you wish to use your own machine as a public DNS server, you still have to add these records to the DNS zone for your domain, but you also have to register your name servers (ie. ns1.fuelinteractive.net and ns2.fuelinteractive.net) with your registrar and point them at your public IP address.

If you are using your own DNS server for internal (ie. network) DNS, you will need these same records, but they should be pointed at your internal LAN IP address (ie. 192.xxx.xxx.xxx).
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12360280
You may want to take a look at this overview about DNS in relation to hosting your own web server - www.dslwebserver.com/main/fr_index.html?/main/sbs-zoneedit-registration.html.
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12360282
hmmm OK let me see if I can boil it down so I understand it......

Plesk adds those records automatically when creating a domain.  So my question then is do I need to add them with the Advance DNS service from my registrar?  If so how will that impact on any extra domains that I add.

I have a ok handle with the different record types, before I started looking into these automated programs I was atempting to do it manually so I learned alot.

LAter

IC
0
 
LVL 33

Accepted Solution

by:
humeniuk earned 250 total points
ID: 12360362
Plesk adds them to your local DNS server, but your domain isn't configured to use your local DNS server, it's configured to use ns1.webnames.ca and ns2.webnames.ca.  Assuming that Plesk sets up the DNS records correctly, your domain would still have to be configured to use it as a name server and you would still have to register your name servers (ie. ns1.fuelinteractive.net & ns2.fuelinteractive.net).  

I think you're also encountering a problem in that the server is behind a router, so it's not using the public IP address.  From what you've said, Plesk automatically configures the DNS using the local IP address, but since the server isn't directly connected the internet and has no public IP address.  Therefore, even if you registered your name servers with your registrar and users were able to get to your DNS server, it would resolve your domain to 192.xxx.xxx.xxx (which can't be found on the internet) instead of 68.xxx.xxx.xxx.

Take a look at the link above for a DNS overview.  You can see also http://computer.howstuffworks.com/dns.htm.
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12360414
OK I understand that but if you put in fuelinteractive .net with the www it does reslove to the public IP because I have manually changed to DNS in Plesk.  Quick question... arn't web server normally behind a firewall?  If so then how do they do it?

So I'll be a bit while I do all this reading, let me know if you have any other ideas please.

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12360490
Even if your local DNS server is configured properly, your domain has to be configured to use that DNS server.  At present, your domain is configured to use different name servers which don't have any of these records that Plesk is creating.  If you modify your domain to point at your own name server, you will have to wait 24-72 hours for those DNS changes to propagate.

There are different kinds of firewalls.  In your case, your router keeps your web server on your LAN rather than on the internet.  The router is capable of passing internet traffic to your server, but it has to be configured to do so.  Likewise, if your DNS server is also on the LAN, but it resolving the domain for internet users, it has to give out the public IP address (which browsers can find) rather than the LAN address (which browsers can't find).
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12360532
ahhhh, OK things take a little to sink in but I think I am getting it.  I have changed the DNS to point to my machine so now I will wait and see what happens.

I REALLY appriciate all the help.  I have been struggeling with this for soe time to learn it on my own but it has a petty decent learning curve.

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12361593
I'm happy to be of some help.  It takes some time to get the hang of things and it's all pretty precise - one small syntax mistake and nothing works.
0
 
LVL 2

Author Comment

by:InnerChild
ID: 12370536
OK I think my world is at peace now.  I keep banging my head because as some pints I was able to see everything on my local network but not from a computer outside the network and vice versa.  I figured out that if the DNS is pointing to the private IP then it would show on my local network but not outside it but if I changed the DNS to the public IP I was then able to see it from public machine but not the local network.  I don't completely understand why but that is ok because I know it is all working.

Thanks again I have learned alot from this thread.  I bumped up the points because of all your help.  If there is anything else you think I should learn for doing hosting on my own and could point me in the right direction that would be great.

LAter

IC
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12386461
<< I bumped up the points because of all your help. >>
Thank you for the kind words and the points.  Having gotten some very timely help here myself (more than once), I'm happy to be able to help out a little.

<< Thanks again I have learned alot from this thread. >>
That's one of the great things about E-E.  In addition to helping each other resolve problems, whether asking or answering, we end up learning quite a bit through the process.

<< If there is anything else you think I should learn for doing hosting on my own and could point me in the right direction that would be great. >>
It sounds like you're well on your way.  In terms of what else you should learn, I think experience will tell you that.  If you're like me, you'll coast along until something goes wrong that you can't fix, then you'll come back to E-E  :)

Good luck.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now