Technology Get the latest on technology, electronics and software…

Networking Question: Domain Name Servers and Developer Environment

Thread Tools
 
Old Apr 11, 2008 | 05:58 PM
  #1  
Sly Raskal's Avatar
Thread Starter
Team Owner
iTrader: (1)
 
Joined: Sep 2002
Posts: 30,991
Likes: 582
From: Fontana, California
Networking Question: Domain Name Servers and Developer Environment

I've been using the DynDNS.org service for years now, but I want to explore another option which would be having a local DNS server.

I don't know much at all about setting up a DNS server, what's involved etc.

I want to setup an internal network so that when I type for example "sitexyz" into my browser, it'll bring up the site from my MBP which is running an Apache Web server.

Has anyone here setup a DNS server before? What's involved? I looked up some information on google and found that you can do it windows but you have to have a windows server OS to do it. XP Pro doesn't have the software to do it.
Reply
Old Apr 11, 2008 | 07:23 PM
  #2  
eclipse23's Avatar
Moderator Alumnus
 
Joined: Oct 2000
Posts: 11,829
Likes: 3
From: CRY, CRY SOME MORE!
DNS is fairly easy to implement, yet the cause of 90% of the problems to an internal network so if set up improperly it could be hellish. If you had AD to the mix it's now a core service that must be carefully constructed and managed.

If your needs are fairly simple and you are dealing with a non-AD windows server you can run DNS. I highly suggest a brief read of the technet articles on DNS setup. Once you set up a primary zone (ex: contoso.com) you can create local A records that represent different machines in your environment (developer.contoso.com, etc.).

One caveat is that if you are going to point machines to look for DNS records on the local server, you are going to have to provide forwarding DNS numbers to resolve routable IP addresses that exist outside of your local network (www.cnn.com). Ofcourse if this is just a small internal setup and you don't need to go past the local gateway you do not need to set up forwarders.
Reply
Old Apr 11, 2008 | 07:24 PM
  #3  
eclipse23's Avatar
Moderator Alumnus
 
Joined: Oct 2000
Posts: 11,829
Likes: 3
From: CRY, CRY SOME MORE!
Also, you can use BIND for linux, it's free and it does the same thing but is a little harder to work with especially if you are not a linux guy.

**BIND EDIT**

http://www.dns.net/dnsrd/servers/windows.html

They have a version for windows.
Reply
Old Apr 11, 2008 | 07:25 PM
  #4  
eclipse23's Avatar
Moderator Alumnus
 
Joined: Oct 2000
Posts: 11,829
Likes: 3
From: CRY, CRY SOME MORE!
Lastly, you could use local host files if DNS is not what you want to do.


Sorry for all the posts.
Reply
Old Apr 11, 2008 | 07:34 PM
  #5  
doopstr's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jan 2001
Posts: 25,967
Likes: 2,685
From: Jersey
The need for forwarders is a myth. Forwarding has its place but not needed for such a simple setup.
Reply
Old Apr 11, 2008 | 08:34 PM
  #6  
eclipse23's Avatar
Moderator Alumnus
 
Joined: Oct 2000
Posts: 11,829
Likes: 3
From: CRY, CRY SOME MORE!
Originally Posted by doopstr
The need for forwarders is a myth. Forwarding has its place but not needed for such a simple setup.
Well like I said if he needs to, he can have the DNS server point to outside DNS servers. I don't see the harm either way.
Reply
Old Apr 11, 2008 | 08:50 PM
  #7  
Sly Raskal's Avatar
Thread Starter
Team Owner
iTrader: (1)
 
Joined: Sep 2002
Posts: 30,991
Likes: 582
From: Fontana, California
Thanks for the feedback eclipse. I should have been more descriptive of my setup.

I do all my development now on a laptop. Although I still have my desktop, I do not do any developing on it and don't plan on it. At one point in time I did have a Linux Server which is just sitting here now because for some time now I haven't been developing at home, but now I'm beginning to start up again.

I have a MBP which I have apache 2.2, CF8 Developer Edition, PHP and MySQL installed. I want to utilize the vhost directives in Apache to configure multiple sites and point them to different folders so that I can set each vhost up as close as possible to their production versions. Unfortunately, when I set the servername directive in the Apache conf files, they aren't recognized by my network because obviously they don't point anywhere. In this case, they will all point to my MBP so that my Apache installation can serve all the sites I work on. And if possible I'd like for it to work whether I'm connected to a network or not, so I guess it would be an internal machine only setup if that makes sense.

I hope this makes sense and I hope that there is some solution for me to do this. Again, forgive my ignorance when it comes to networking, I don't know much about it. I've always known just enough to get by.
Reply
Old Apr 11, 2008 | 09:15 PM
  #8  
soopa's Avatar
The Creator
 
Joined: Apr 2000
Posts: 37,950
Likes: 8
From: Albany, NY
why arent you just using your hosts file? in OSX just manage it with NetInfo manager. seems like it would more than suffice at meeting your needs.
Reply
Old Apr 11, 2008 | 09:16 PM
  #9  
eclipse23's Avatar
Moderator Alumnus
 
Joined: Oct 2000
Posts: 11,829
Likes: 3
From: CRY, CRY SOME MORE!
Originally Posted by soopa
why arent you just using your hosts file? in OSX just manage it with NetInfo manager. seems like it would more than suffice at meeting your needs.

Yeah, thats exactly why after I explained DNS i added that last post about hosts. Sounds like you don't need a naming service.
Reply
Old Apr 11, 2008 | 09:39 PM
  #10  
Sly Raskal's Avatar
Thread Starter
Team Owner
iTrader: (1)
 
Joined: Sep 2002
Posts: 30,991
Likes: 582
From: Fontana, California
Originally Posted by soopa
why arent you just using your hosts file? in OSX just manage it with NetInfo manager. seems like it would more than suffice at meeting your needs.
Unfortunatly, I'm not using OSX as my primary OS [yet]. I'm still using Windows.

I want to make the switch over, but I couldn't afford to buy the Adobe CS3 Bundle of the software I needed for OSX as it was a little more expensive than their windows counterparts. I got a great deal on the Windows version that was about $500 cheaper than the OS X version.

Anyway, following your info about local host files, I did a search in and found some info about it and modified a vhost in my apache installation and it worked. I got a 403 error when it served the page, but at least it served the pages for the servername I used which was what I was looking for. http://www.ezlan.net/host.html

Thanks for the info and sorry for the confusion.



Reply
Old Apr 11, 2008 | 11:59 PM
  #11  
Whiskers's Avatar
Go Giants
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Aug 2004
Posts: 70,003
Likes: 1,260
From: PA
Well #1Stunna....Er I mean Sly, Windows has hosts files as well....
Reply
Old Apr 12, 2008 | 12:02 AM
  #12  
Sly Raskal's Avatar
Thread Starter
Team Owner
iTrader: (1)
 
Joined: Sep 2002
Posts: 30,991
Likes: 582
From: Fontana, California
Originally Posted by Whiskers
Well #1Stunna....Er I mean Sly, Windows has hosts files as well....
All these years and I never knew this feature of windows. Someone kick me for being a dipshit.
Reply
Old Apr 12, 2008 | 01:44 AM
  #13  
#1 STUNNA's Avatar
Sanest Florida Man
Photogenic
Photoriffic
Shutterbug
Community Influencer
 
Joined: Aug 2007
Posts: 45,973
Likes: 11,762
From: Florida
Originally Posted by Whiskers
Well #1Stunna....Er I mean Sly, Windows has hosts files as well....
HAHA! yeah! I remember fucking with the host files in my N+ class in Windows! It should be in the C:\Windows\sytem32\drivers\etc directory the file is called hosts obviously. Open it in notepad and it should look like this:

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
::1 localhost
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
bluetl04
Non-Automotive & Motorcycle Sales
12
Aug 16, 2016 02:49 PM
knight rider
Car Talk
9
Mar 4, 2016 08:59 AM
KBTypeS
3G TL Performance Parts & Modifications
25
Oct 1, 2015 04:49 PM
AcuraKidd
Non-Automotive & Motorcycle Sales
0
Sep 25, 2015 11:18 PM
rboller
3G TL Audio, Bluetooth, Electronics & Navigation
0
Sep 23, 2015 02:49 PM




All times are GMT -5. The time now is 01:57 AM.