<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/styles/XMLStylesDoc_xhtml11_en.xsl"?><!DOCTYPE document SYSTEM "/schemas/XMLStyles10.dtd">
<document xmlns="http://XMLStyles.com/namespaces/styles" xmlns:xst="http://XMLStyles.com/namespaces/styles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:date="http://exslt.org/dates-and-times">
   <noxml>
      <p xmlns="http://www.w3.org/1999/xhtml"/>
      <!-- You are viewing the source.  The following message should be ignored if you did "View Source" in your browser. -->
      <p xmlns="http://www.w3.org/1999/xhtml">
ATTENTION: XML WEB PAGES NOT SUPPORTED
   If you see this message, your current browser does not support the
   1999 XSLT 1.0 (or later) standard for XML web pages such as this one.
   Please upgrade your browser to a newer version
   that supports 1999 or later standards such as:
      Mozilla Firefox version 1.0.2 or later (GetFirefox -&gt; http://www.GetFirefox.com/)
      Netscape version 8 or later
      Safari version 1.3 or later
      Opera version 9 or later
      Microsoft Internet Explorer (MSIE) version 5 or later
   For further assistance, contact the software vendor for your browser.
   To go to the X<!-- extended HTML -->HTML version of this page click the following link:
<a href="index.html">index.html</a>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">&#160;</p>
   </noxml>
   <path>/computers/os/macosx/</path>
   <site>How To Guides</site>
   <logo xlink:type="simple" xlink:href="/images/howtohome.jpg" media="screen" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguides.jpg" media="print" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguidesmobile.jpg" media="handheld" width="150" height="17">How To Guides</logo>
   <navigation where="sections">
      <label>How To Guides</label>
      <link xlink:type="simple" xlink:href="/business/index.xml">Business</link>
      <link xlink:type="simple" xlink:href="/computers/index.xml">Computers</link>
      <link xlink:type="simple" xlink:href="/computers/databases/index.xml">Databases</link>
      <link xlink:type="simple" xlink:href="/internet/index.xml">Internet</link>
      <link xlink:type="simple" xlink:href="/mobile/index.xml">Mobile</link>
      <link xlink:type="simple" xlink:href="/money/index.xml">Money</link>
      <link xlink:type="simple" xlink:href="/movies/index.xml">Movies</link>
      <link xlink:type="simple" xlink:href="/computers/os/index.xml">Operating Systems</link>
   </navigation>
   <navigation where="up">
      <link xlink:type="simple" xlink:href="../../">Computers</link>
      <link xlink:type="simple" xlink:href="../">Operating Systems</link>
   </navigation>
   <navigation where="subsections">
      <link xlink:type="simple" xlink:href="/computers/os/unix/">UNIX</link>
      <link xlink:type="simple" xlink:href="index.xml">Mac OS X</link>
      <link xlink:type="simple" xlink:href="/computers/os/ibmzos/">IBM z/OS</link>
      <link xlink:type="simple" xlink:href="/computers/os/macosx/">Windows</link>
   </navigation>
   <section id="body" type="body">
      <pages name="index">
         <title>How To Guides for Mac OS X</title>
         <label>Mac OS X</label>
         <navigation where="pages">
            <label>Mac OS X</label>
            <link xlink:type="simple" xlink:href="index.xml">Summary</link>
            <link xlink:type="simple" xlink:href="dns-home.xml">dns</link>
            <link xlink:type="simple" xlink:href="scutil.xml">scutil</link>
         </navigation>
         <h1>"How To" Guides for Mac OS X</h1>
         <page id="N10081" name="dns-home">
            <title>Setting Up DNS for a Home / Internal Network</title>
            <label>dns</label>
            <h2>How to set up <acronym term="Domain Name System">DNS</acronym> on your local network</h2>
            <p>This section describes how to set up DNS on your home network, or any local network.
               The steps are:
            </p>
            <ol>
               <li>
                  <link xlink:type="simple" xlink:href="#naming">Determine what names you will use on the network</link>
               </li>
               <li>
                  <link xlink:type="simple" xlink:href="#hostname">Set the <b>Local Hostname</b> of your system(s)</link>
               </li>
               <li>
                  <link xlink:type="simple" xlink:href="#local">Display the Local Domain for Web Sharing</link>
               </li>
               <li>
                  <link xlink:type="simple" xlink:href="#search">Set up your search domains</link>
               </li>
            </ol>
            <p>These steps are described in more detail in the following sections.
            </p>
            <subpage id="naming" name="naming">
               <title>Naming the Network and the Nodes on the Network</title>
               <label>Naming</label>
               <h2>Naming the Network</h2>
               <p>Ideally, you would like to have your own domain name for your network. You can
                  <link xlink:type="simple" xlink:href="http://www.AtoZDomains.com">get a domain name</link>
                  for under $10/year at domain name registration sites
                  like <link xlink:type="simple" xlink:href="http://www.AtoZDomains.com">A to Z Domains</link>.
                  If you own a domain name, you can create subdomains for your network(s) under it.
               </p>
               <p>One option for naming your network(s) is to include the location as part of the name.
                  For example, if you have registered the domain name
                  <link xlink:type="simple" xlink:href="http://www.ExampleOnly.com/">ExampleOnly.com</link>
                  and live at "1337 Fleet Street", then your local network at home could be named
                  <code>FleetStreet.ExampleOnly.com</code>.  With this scheme, if you also connect to a
                  local network someplace else, it could be named <code>AnotherPlace.ExampleOnly.com</code>
               </p>
               <h2>Naming the Node(s)</h2>
               <p>Choose a unique name for each node on the network.
                  These names should be no more than 26 characters.
               </p>
            </subpage>
            <subpage id="hostname" name="hostname">
               <title>Set the Local Hostname of your system(s)</title>
               <label>Local Hostname</label>
               <p>Start the System Preferences application by clicking on
                  its icon in the dock, or, from the Terminal window, enter:
               </p>
               <blockcode>
                  <l>open -a System\ Preferences</l>
               </blockcode>
               <p>and select <span class="outlined">Sharing</span> then <span class="outlined">Edit...</span>
                  to navigate to the screen where the Local Host Name can be changed:
               </p>
               <p>The local host name will end with <code>.local</code>.
                  If it's not already set to the desired hostname, change it, and save the change.
                  This will set the <code>System:Network:HostNames:LocalHostName</code> in
                  <code>/Library/Preferences/SystemConfiguration/preferences.plist</code>.
               </p>
            </subpage>
            <subpage id="local" name="local-domain">
               <title>Display the Local Domain for Web Sharing</title>
               <label>Local Domain</label>
               <p>Start the System Preferences application by clicking on
                  its icon in the dock, or, from the Terminal window, enter:
               </p>
               <blockcode>
                  <l>open -a System\ Preferences</l>
               </blockcode>
               <p>and navigate to the <span style="outlined">Sharing</span> screen.
                  If not already checked, select the check box next to <code>Web Sharing</code>.
                  This will display a couple of lines that show URLs including the Local Domain name:
               </p>
               <blockcode>
                  <l class="output">Your computer's website:   http:<i>hostname</i>.<i>local-domain</i>/</l>
                  <l class="output">Your personal website:     http:<i>hostname</i>.<i>local-domain</i>/~<i>username</i>/</l>
               </blockcode>
               <p>After you've seen the local domain name, you can deselect the check box to disable Web Sharing again.
               </p>
               <p>If the local domain is not already set to the desired name,
                  you will need to change the name of your local network.
                  How you accomplish this depends on how you are connected to the Internet.
                  You may need to <link xlink:type="simple" xlink:href="/internet/isps/Verizon/router.xml#dns">change the DNS settings on your router</link>.
               </p>
               <h3>Verify the configuration</h3>
               <p>On your computer, start the Terminal application and enter <code>hostname</code>.
                  If both the computer's local name and the network's local domain are set up,
                  then you should see a fully-qualified name, such as:
               </p>
               <blockcode>
                  <l class="output">MyMac.FleetStreet.ExampleOnly.com/</l>
               </blockcode>
            </subpage>
            <subpage id="search" name="search-domains">
               <title>Set Up Your Search Domains</title>
               <label>Search Domains</label>
               <p>"Search Domains" are domains that are automatically appended to
                  a name that you enter (in browser address field, for example).
                  To set them up, start the System Preferences application by clicking on
                  its icon in the dock, or, from the Terminal window, enter:
               </p>
               <blockcode>
                  <l>open -a System\ Preferences</l>
               </blockcode>
               <p>and select <span class="outlined">Network</span>, <span class="outlined">Advanced...</span> and
                  <span class="outlined">DNS</span> to navigate to the screen where the Search Domains can be changed.
               </p>
               <p>To add a search domain click on the <code>[+]</code> under "Search Domains:".
                  You can include your local network and the entire (global) network based on
                  your domain name, along with any other domains you want to access more easily:
               </p>
               <blockcode>
                  <l class="output">Search Domains:</l>
                  <l>FleetStreet.ExampleOnly.com</l>
                  <l>ExampleOnly.com</l>
               </blockcode>
               <p>In this example, <code>FleetStreet.ExampleOnly.com</code> is the name of the local
                  network and <code>ExampleOnly.com</code> is the base domain of the global network.
                  So, to access the router administration screen on the local network, you could
                  simply enter <span class="outlined">router</span> in your browser's address field and you
                  would be connected to <span class="outlined">router.FleetStreet.ExampleOnly.com</span>.
                  Similarly, to access a host at "AnotherPlace", you could enter the abbreviated form
                  <span class="outlined">myHostName.AnotherPlace</span> to connect to the host at
                  <span class="outlined">myHostName.AnotherPlace.ExampleOnly.com</span>.
               </p>
            </subpage>
            <updated local="2009-06-13">Saturday June 13, 2009</updated>
         </page>
      </pages>
   </section>
   <copyright>Copyright © 2009 How To Guides .com. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.</copyright>
   <disclaimer>All information, links, forms, applications and other items on this site or obtained from it are provided <b>AS IS</b>, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</disclaimer>
   <ids urchin="UA-779578-2"/>
</document>

