LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2007, 08:45 PM   #1
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Rep: Reputation: 15
any idea how to resolve IP address to domain name


Good day to all,

Is there anyone out there who can help me I'm installing Redhat core(CentOS 5) on my machine setting up a web server. The problem is, where can I edit the files so that I can view the page instead of 132.156.5.56 into example.domain.com.ph

I'm working on this almost a month but can't figure it out

Any suggestions,idea,help is much highly appreciated.

Best Regards,

Rainel
 
Old 08-27-2007, 08:48 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
I'm not sure exactly what you are asking, buy maybe /etc/hosts.
 
Old 08-27-2007, 09:09 PM   #3
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks for the reply here is my /etc/hosts conf

# Do not remove the following line, or various programs that require #network functionality will fail.
# ::1 localhost6.localdomain6 localhost6
#127.0.0.1 localhost.localdomain localhost lynkz
124.6.155.50 lynkz.com.ph lynkz localhost.localdomain lynkz

I made a script:

<?
php phpinfo();
?>

into my httpd server I can view it using IP address 124.6.155.50 but not lynkz.com.ph I know its weird but is there a way I can solve that.

Thanks again,


Rainel
 
Old 08-27-2007, 09:36 PM   #4
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
Try formatting /etc/hosts like this:
Code:
# Do not remove the following line, or various programs that require network functionality will fail.
::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost.localdomain localhost
124.6.155.50 lynkz.com.ph lynkz
Is the public IP for this computer static?

Do you have DNS entries in the network configuration?

Are you supposed to be using lynkz.com.ph?
 
Old 08-27-2007, 09:54 PM   #5
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Is the public IP for this computer static?
Yes

Do you have DNS entries in the network configuration?
Yes, I clearly put it up

Are you supposed to be using lynkz.com.ph?
No, actually computer alias is poseidon


Here is my revised /etc/hosts

# Do not remove the following line, or various programs that require #network functionality will fail.
::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost.localdomain localhost
124.6.155.50 poseidon.booom.com.ph poseidon

I followed it but still it won't work.


Thanks for the reply cgjones.


Best Regards,

Rainel
 
Old 08-27-2007, 10:03 PM   #6
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
Are you trying to access the page from the computer hosting it?
 
Old 08-27-2007, 10:10 PM   #7
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
I'm accessing it on my Windows 2000 PC. This is how I accessed it:
In my firefox browser I put "124.6.155.50" and luckily it will worked it shows me the PHP info but when I tried poseidon.booom.com.ph it says "The Requested URL cannot be retrieved".

Thanks again cgjones.

Best Regards,

Rainel
 
Old 08-27-2007, 10:17 PM   #8
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
It doesn't work because poseidon.booom.com.ph doesn't map to 124.6.155.50. You need to register poseidon.booom.com.ph and have it associated with your static IP to be able to access it by name. Or you can add the hostname and IP address to the Windows host file, but you would need to do that for every computer you access poseidon.booom.com.ph from.
 
Old 08-27-2007, 10:21 PM   #9
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
"It doesn't work because poseidon.booom.com.ph doesn't map to 124.6.155.50. You need to register poseidon.booom.com.ph and have it associated with your static IP to be able to access it by name."

I will take that option how would I do that cgjones.


Thanks for the reply.

Best Regards,

Rainel
 
Old 08-27-2007, 10:26 PM   #10
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
I would start here:
The Official Domain Registry of the Philippines
 
Old 08-27-2007, 10:32 PM   #11
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Do I need to register for this one cgjones? Do I need to pay for this one? Sorry but don't know to start with.
 
Old 08-27-2007, 10:45 PM   #12
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
You definitely need to do some research on domain names and DNS, so that you understand how it all works.

Start with the FAQs on the Official Domain Registry of the Philippines.

And then try out our good friend Google.
 
Old 08-27-2007, 11:02 PM   #13
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks a lot cgjones. It will be a good start for me studying linux. Well if you have any good tutorial about setting up a web server can you please share it. Coz after this one I want to setup proxy server on my own. I will try to study how DNS stuff works first before I proceed.

Many,many thanks cgjones I will update this thread once I get finished setting this up. But because I'm a slow learner maybe it will take many days before I could catch up with this one.

Thanks again for your suggestion.

Best Regards,

Rainel
 
Old 08-28-2007, 12:06 AM   #14
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
A good place for tutorials is HowtoForge.

Good luck. There is a lot to learn, but if you stick with, it all starts to make sense.
 
Old 08-28-2007, 12:57 AM   #15
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Hello again cgjones

Do I really need to get another registered domain because we have a domain registered already.


Best Regards,

Rainel
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS http:domain.com resolve to www.domain.com keysorsoze Linux - Networking 3 02-12-2007 03:03 AM
Cannot resolve ip address jules verne Linux - Networking 1 08-09-2006 10:34 AM
Can't resolve domain name.. freakin'me Fedora 1 03-15-2006 01:27 AM
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 06:57 PM
I can't resolve domain after 1 hour sesz Linux - Networking 2 07-28-2005 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration