Hi Leaf'ers
I think Erich's answer was probably the best, but it also seemed like overkill to some degree - so let me be a bit more precise in what I'm trying to accomplish in hopes that there's an easier way to do this.


The problem:
I've got a server running in my DMZ that's running smtp, imap, and very light web hosting services. From out in the world, I can hit the page by hostname. From the LAN, I can address the dmz machine by IP address, and have in the past added an entry into my client machines (OS X, Linux, Windows) /etc/hosts file to be able to address the DMZ server by hostname as well. The LAN is small, only consisting of 3-4 machines at any given time, so maintaining the /etc/hosts files isn't really an issue for LAN-only machines. I run into problems with my OS X laptop. When it's home, I have to either change my /etc/hosts file, or use IP addresses. When away from home, hostname works just fine.


So the question is whether there's any (easier) way to have the OS X laptop hit the DMZ machine by hostname when it's on the LAN. Now that I think of it, I'm not entirely sure that the solution is best reached through modifying anything on the LEAF side of things since I think I could probably whip up an Applescript that would copy the right /etc/hosts file into place based on IP address/location. But, in the event that there's a nice, relatively easy way to do this from the LEAF side of things, I figured I'd ask.

thanks for the assistance.

For reference, here's what Erich Titl wrote:
Mhhh pointers.

The easiset way is to set up an internal authoritative name server for _your_ domain and use that one exclusively. Any address lookup not services by that server will be forwarded to whatever you define as the uplink name server. So far for internal access. Do the same (with different addresses of course) on an externally visible name server and voila, that's basically it.

HTH
Erich

On Jan 24, 2004, at 8:01 AM, arif wrote:


Hey folks,
the recent thread on "machine access by hostname" reminded me that I'd been intending to setup some form of DNS so that I could access my server in the DMZ by hostname. I've searched around and done a pretty good of confusing myself since this is all pretty new to me, so I'm wondering if someone has some pointers to resources on how to set this up that are relatively straightforward.


thanks,

Arif



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
----------------------------------------------------------------------- -
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html



------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to