-----Original Message----- From: John Andersen [mailto:jsa@pen.homeip.net] Sent: Wednesday, August 27, 2003 5:35 AM To: suse-linux-e@suse.com Subject: Re: [SLE] Hostname Domain name confusion
I just installed SuSE 8.2 and set up Apache2, MySQL etc... All of this works OK. I also have a registered domain name with a static IP. I have DNS services with sitelutions.com (free) so now when I type my registered name ( www.bartonweb.com) into a browser I get the the web site. My problem is I'm connected to the internet via bellsouth and a LinkSys router. The router is providing DHCP services on a private network 192.168.1.xx. So far the router always seems to assign the same address to my Linux box so I have been able to set the router to that address as the DMZ box. The DMZ box is the box where web page requests get forwarded to. I would like to stop using DHCP and go with a static IP but every time I
get the thing to work. Should I be putting my domain name in some file somewhere? I've tried setting up a static IP on my Linux box using YAST2, should I be editing some file? If so what files? I realize
On Tuesday 26 August 2003 11:08, Garry Barton wrote: try this I can't the Linux box
will have a private IP address while the router gets the IP assigned by Bellsouth. Should my FQDN on the Linux box be something like Linux.bartonweb.com or just bartonweb.com?
Garry
"I would like to stop using DHCP and go with a static IP but every time I
Gary: When you say try this I can't
get the thing to work."
Which machine are you trying to set your static IP on? The linux box in the dmz? If so, you can't do that.
I'm trying to set the static IP on the Linux box.
The only place you can get a static IP is from your own ISP (bellsouth) and the machine that has to get the static IP is the one connected to bellsouth, which is, (as best I can tell from your description) the router. You can't use this static IP INSIDE your network.
I agree, my router has the static IP, that is assigned by bellsouth. And I'm paying extra to Bellsouth to get the static IP.
Your router can be set to always forward http requests from the net to a specific IP (192.168)
Further, it can most likely be set to always give a specific IP to a specific machine (via the mac address burned into the nic). Failing that you can set your linux box to any given 192.168.1.xx IP you want (except 1 and 255) and just usurp that IP from the router. If the router has a rfc compliant dhcp server in it, it will work around any hard coded addresses. But the address you set has to be a 192.168.1. something.
Your correct again. The router does work around the static IP I assinged to my Linux box. And my Linux box is set to a 192.168.1.something.
If bell south sold you a static ip, then you should be able to set your Router to that IP.
If you got that static ip from someone else (not bell south) it won't do you much good.
I'm a little bit unclear as to where you got the static IP and where you intend to use it.
BTW, your use of the term DMZ is not really correct. A DMZ implys a whole seperate cabeling system and 3 nics in the router - one to the outside, one to the inside and one to the DMZ so that even if hackers manage to get to your web server in the DMZ they wont get into your other machines.
According to the Linksys router manual: The DMZ Hosting feature, allows one local user to be exposed to the Internet for use of a special-purpose service such as Internet gaming and videoconferencing. Whereas Port Range Forwarding can only forward a maximum of 10 ranges of ports, DMZ hosting forwards all the ports for one PC at the same time. My quest is what do I set my host name to and where do I do that. I did find some settings in YAST2 for DHCP and host name and such but I'm not sure what to change. I think I need to put the DNS servers from bellsouth somewhere, the route, default gateway, host name, etc.. somewhere but I not sure where. DHCP is handling all of this for me now. Garry