image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old August 8th, 2002, 04:38 PM
Professional Crastinator
 
Join Date: Jun 2002
Location: I'll tell you later
Posts: 366
Thanks: 0
Thanked 0 Times in 0 Posts
tk4two1 is on a distinguished road
How do I set up a DNS server?

I would like to setup a dns server in my network so I can use ip networking between Mac and PC. I would like to have it set up so that a user could just type in a hostname rather than ip address and have a hosts file on a DNS server. I'm sorry if I am being redundant but I am quite confused. Hopefully someone will understand what I am trying to do.
Reply With Quote
  #2  
Old August 8th, 2002, 06:37 PM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
well setting up a name server means just having the correct config files, and then run /usr/sbin/named. setting up custom zone files might be a little complicated for your needs, however. you don t really need to have a name server just to translate hostnames to IPs. /etc/hosts or NetInfos equivalent can do it for you.

here are some DNS how-tos, if you really do want to set up a DNS server.

here is a thread discussing making your OSX machine recognize your custom hostnames, and here is a HOWTO thread on the same.

be aware that if you do choose the second hostnames method, instead of DNS, you would have to edit the hostnames on both (or all) machines on your network, which would be automatic if you had a DNS server. if you have only very few machines on your network, you should much prefer the easier method of editing hosts files. also, i have no idea where windows stores its hosts file, but its there somewhere. if you run some form of UNIX on your PC (other than darwin), then it can be found at /etc/hosts
Reply With Quote
  #3  
Old August 9th, 2002, 01:52 AM
Registered User
 
Join Date: Dec 2000
Location: PA or MD, USA
Posts: 722
Thanks: 0
Thanked 0 Times in 0 Posts
theed is on a distinguished road
bind is overkill

dude, if you're talking about 2 machines seeing each other, you want to edit the hosts file on the windows machine, and on Mac OS X.1 you open up netinfo and make duplicates of the localhost entry in the machines category, filling in information as appropriate to make the entries correct and meaningful.

Setting up real DNS (using bind anyway) is a real pain in the butt. You don't want to do that. BIND is industrial class, and way too painful for individual use. If someone knows of something simpler ... is there a simpleDNS or something out there? MacDNS for mac OS 9 was Sweet. Is there a X replacement?
__________________
- Beware the wrath of my apathy.
Reply With Quote
  #4  
Old August 9th, 2002, 08:28 AM
Professional Crastinator
 
Join Date: Jun 2002
Location: I'll tell you later
Posts: 366
Thanks: 0
Thanked 0 Times in 0 Posts
tk4two1 is on a distinguished road
I have 12 Macs and 4 PC's. I would rather not edit each config file on each machine. I have a spare mac that I could run OS X on that I want to use as a DNS machine. I just need to know how to set it up. I will check the links that lethe has left for me and see if that helps.
Reply With Quote
  #5  
Old August 9th, 2002, 11:14 AM
Registered User
 
Join Date: Aug 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
krokodilen is on a distinguished road
you need BIND to set up a dns server.

it's quite easy if you got a OSX server,
just edit the contents in var/named

and named.conf in etc.


I'm sure you can run BIND on regular OSX aswell, but it's not installed by default so you have to get the packages.
Reply With Quote
  #6  
Old August 9th, 2002, 01:06 PM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
au contraire. bind is installed by default on OSX client, although there is no default configuration (i.e. there is no /etc/named.conf). but you don t have to download/install. just create a configuration file.
Reply With Quote
  #7  
Old August 9th, 2002, 01:41 PM
Registered User
 
Join Date: Aug 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
krokodilen is on a distinguished road
aha... well in osx server u can turn it on and off from the gui,
you probably need some extras for that...
Reply With Quote
  #8  
Old August 9th, 2002, 04:09 PM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
krokodilen: i sometimes wonder what exactly the differences between OSX client and OSX server. OSX server has a GUI frontend to setting up NI domains, and now im learning that it has GUI frontend to bind, but for the most part, the underlying software is identical?



tk4two1: after you figure out how to make your named.conf file, and your zone files, then you should do the OSX specific stuff: make an entry in /etc/hostconfig called NAMESERVER, and make it a network startup item.

here is apples page on how to make a startup item, or you can use their samba script as an example template.

for setting up DNS, those links from TLDP should provide enough info, but i ve never used them, instead i used DNS and BIND from oreilly associates. let us know how it goes!
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SHUTDOWN without warning SCARY!! astro_sk Mac OS X System & Mac Software 10 May 16th, 2003 01:45 PM
I set up a streaming server AdmiralAK Mac OS X System & Mac Software 0 August 6th, 2002 11:41 AM
HOW TO STOP SPAM -- join the fight! GadgetLover Apple News, Rumors & Discussion 11 April 11th, 2002 02:52 PM
Need help to set up OS X Server 10.1 Essage Mac OS X System & Mac Software 2 December 1st, 2001 12:15 AM
how to set up server for login novaice Mac OS X System & Mac Software 0 August 8th, 2001 10:52 AM


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


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.