Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Pointing Domain to Home Server?
New Posts  All Forums:Forum Nav:

Pointing Domain to Home Server?

post #1 of 6
Thread Starter 
I have been searching for the answer to this question all over the web and think I am really close.

I have a LAMP server running Centos 5. I have a domain name superstave.com. My server I hanging out on my network behind a router. In the router I have done single port forwarding to the static IP address I assigned to the LAMP server. On the router it has drop downs on the left that say FTP, HTTP, or etc. I chose the first one FTP and it assigned port 21 to the address I entered. In the instructions I found it said to also open port 80 which I did in the custom section of port forwarding.

The LAMP server is called server5. I looked up my IP address via some website and it told me the address going to the modem. My domain is registered with 1and1.com. On the domain website I have directed the domain name to my IP address.

So the reason I am posting is that I cannot connect my server using the domain name. I can connect using the IP address I assigned on the network.

In the hosts file the static IP of the server is 192.168.1.121server5.superstave.comserver5
Black and Blue
(13 items)
 
  
CPUMotherboardGraphicsRAM
2.66 ASUS P5N-D 2x BFG 8800 GT 4G PC 8500 
Hard DriveOptical DriveOSMonitor
1TB + 64GB SSD DVD burner Windows 7 22" samsone 
KeyboardPowerCaseMouse
dell Antec 800 Antec 1200 logitect 
  hide details  
Reply
Black and Blue
(13 items)
 
  
CPUMotherboardGraphicsRAM
2.66 ASUS P5N-D 2x BFG 8800 GT 4G PC 8500 
Hard DriveOptical DriveOSMonitor
1TB + 64GB SSD DVD burner Windows 7 22" samsone 
KeyboardPowerCaseMouse
dell Antec 800 Antec 1200 logitect 
  hide details  
Reply
post #2 of 6
Normally you can't see yourself when you set these servers up, it's the default for a lot of servers. What you need to do first is set the server up properly so that you can type in your IP, like http://someIP/ and get your server. Until you can get that set up the DNS will do nothing for you.

[edit] When I say you can't see yourself, most server setups deny access from 192.168.0.* so that anybody on the same subnet can't see the server. I'm not exactly sure why, but that's how it goes.
Edited by mushroomboy - 1/7/11 at 12:46pm
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #3 of 6
Basic rundown of what you did is this:

if you dont have a static IP at home then you need to either get one, or use a dynamic dns services like dydns or tzo.com

then you need to log into the control panel with whoever you purchased the domain from and edit the a record to reference your home IP address or dydns name.

Also you have to take into account TTL.. it maybe take minutes/hours depending on your TTL setting for the DNS record to update on the web. So try to open cmd prompt and type ping yourdomainname.com and see if it resolves to your modem IP address.

Also you can use an external port scan to determine if your http/ftp ports are properly open.



Just know... if you type ping yourdomainname.com in command prompt and it resolves to your home ip address... then your issues is strictly port forwarding in your router or firewall on your server.
Edited by rmp459 - 1/7/11 at 12:50pm
    
CPUMotherboardGraphicsRAM
5960x @ 4.4ghz (1.19v) evga x99 micro2 (2) evga gtx 980 ti hybrid 32gb hyperx 2666mhz 
Hard DriveCoolingOSMonitor
samsung 950 pro 512gb NVMe M.2 ssd ek everything win 10 xl2430t / u2515h (x2) / u2913wm 
KeyboardPowerCaseMouse
cm novatouch w/ pbt caps. evga 1200 p2 lian li pc-9f nixeus revel 
Mouse PadAudioOther
steelseries qck heavy gustard U12/X12 -> H10/Lyr presonus 22vsl > mxl770 (mic) 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
5960x @ 4.4ghz (1.19v) evga x99 micro2 (2) evga gtx 980 ti hybrid 32gb hyperx 2666mhz 
Hard DriveCoolingOSMonitor
samsung 950 pro 512gb NVMe M.2 ssd ek everything win 10 xl2430t / u2515h (x2) / u2913wm 
KeyboardPowerCaseMouse
cm novatouch w/ pbt caps. evga 1200 p2 lian li pc-9f nixeus revel 
Mouse PadAudioOther
steelseries qck heavy gustard U12/X12 -> H10/Lyr presonus 22vsl > mxl770 (mic) 
  hide details  
Reply
post #4 of 6
Thread Starter 
I have changed my router to use the static ip address.

Here is the information for domain host company and my Linux server.

DNS Check Result

Domain namesuperstave.com
IP address (A record)98.165.xxx.xxx
Name server 1ns51.1and1.com
Name server 2ns52.1and1.com
Mail server 1mx00.1and1.com, 10
Mail server 2mx01.1and1.com, 10

Router single port forwarding:
Name: Server5
External Port: 80
Internal port: 80
IP address: 192.168.1.xxx

Linux ifconfig info:
eth0 Link encap:Ethernet HWaddr 00:E0:18:79:33:5D
inet addr:192.168.1.xxx Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:18ff:fe79:335d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2902 errors:0 dropped:0 overruns:0 frame:0
TX packets:2218 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:366829 (358.2 KiB) TX bytes:613768 (599.3 KiB)
Interrupt:193 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)

I can login to Webmin I enter the server IP address: https://192.168.1.xxx:10000

I cannot access Webmin using the domain name. server5.superstave.com or superstave.com
Black and Blue
(13 items)
 
  
CPUMotherboardGraphicsRAM
2.66 ASUS P5N-D 2x BFG 8800 GT 4G PC 8500 
Hard DriveOptical DriveOSMonitor
1TB + 64GB SSD DVD burner Windows 7 22" samsone 
KeyboardPowerCaseMouse
dell Antec 800 Antec 1200 logitect 
  hide details  
Reply
Black and Blue
(13 items)
 
  
CPUMotherboardGraphicsRAM
2.66 ASUS P5N-D 2x BFG 8800 GT 4G PC 8500 
Hard DriveOptical DriveOSMonitor
1TB + 64GB SSD DVD burner Windows 7 22" samsone 
KeyboardPowerCaseMouse
dell Antec 800 Antec 1200 logitect 
  hide details  
Reply
post #5 of 6
If you want any serious help we need to know the IP of your home server. And before you go "what about hacking" you have to realize any ping trace on superstave.com will give us the same IP. We need to know that IP and your home IP to verify that it is the same one, just in case your hosts are messed up. We also need to see if your home server is active in the sense that outsiders can see the site. i say this because whenever I post superstave.com in a browser bar it times out, making me think you set up the DNS IPs wrong.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #6 of 6
You need to port forward 80 to an internal address on your home network using your router settings. You then need to use dyn dns to update your non-static external ip address.
    
CPUMotherboardGraphicsRAM
Core i5 750 4.01ghz at 1.27v MSI P55 GD-80 Sapphire Radeon HD 5870 1GB + EVGA 9800GT Physx G.SKILL 4GB DDR3 1600mhz 
Hard DriveOptical DriveOSMonitor
Crucial 128gb Real SSD, WD Black 500gb, 750gb LG DVD combo Windows 7 Ultimate 64 / Arch Linux x64 22" Acer 
PowerCase
Corsair HX750 Corsair 600t 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i5 750 4.01ghz at 1.27v MSI P55 GD-80 Sapphire Radeon HD 5870 1GB + EVGA 9800GT Physx G.SKILL 4GB DDR3 1600mhz 
Hard DriveOptical DriveOSMonitor
Crucial 128gb Real SSD, WD Black 500gb, 750gb LG DVD combo Windows 7 Ultimate 64 / Arch Linux x64 22" Acer 
PowerCase
Corsair HX750 Corsair 600t 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Pointing Domain to Home Server?