<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="keywords" content="9p, 9p2000, research, Plan 9, Inferno, Unix, Open Source, Bell Labs" /> <meta name="description" content="Open source distributed operating system Plan 9 from Bell Labs." /> <link rel="stylesheet" href="/wiki-style.css" media="all" type="text/css" /> <title>Dns configuration notes (Diff)</title></head><body><h1><a name="top"></a>Dns configuration notes <i>-Diff-</i></h1> <div class='body'> <!-- ***************************** --> <hr /><div class='diff_head'><a href="index.html">Tue Mar 25 12:55:38 EDT 2014</a>, marksmith</div><hr /><span class='old_text'>Firstofall:<ul> <li>Configurethenetworkasexplainedin<a href="../Network_configuration">Networkconfiguration</a></li> <li>Readthe<a href="http://plan9.bell-labs.com/magic/man2html/8/ndb"><i>ndb</i>(8)</a>manpage</li></ul> <a name="LOCAL_DNS" /><h3>LOCAL DNS</h3> <pre>ndb/dns -r</pre> <p class='para'>Youonlyneeda<pre></span><span class='new_text'>dns = 1.1.1.1</span><span class='old_text'></pre>entryinyouripnetconfiguration(see<a href="../Network_configuration">Networkconfiguration</a>)andthatserverwillbeusedtoanswerdnsqueries.</p> <p class='para'>Ifyou'reusingip/ipconfigtoconfigureyournetworkviadhcp,dnsentrywillbeautomaticallysetup.</p> <a name="INTERNAL_DNS_SERVER" /><h3>INTERNAL DNS SERVER</h3> <p class='para'>(normallyusedasadns-cachetoavoidwasteonbandwidthwithwww.google.comqueries:)ndb/dns-s)</p> <p class='para'>Youneedtouserootdnsserversdirectly,thenyoucananswerallthenamestoyourclientsdirectly(theydoesn'tneedtogoouttheretoaskforthem,soyousavesbandwidth).Youwillneedanentrylike:<pre>dom= ns=A.ROOT-SERVERS.NET ns=B.ROOT-SERVERS.NET dom=A.ROOT-SERVERS.NET ip=198.41.0.4 dom=B.ROOT-SERVERS.NET ip=128.9.0.107</pre>see/lib/ndb/local.complicatedforacompleteexample.</p> <a name="PRIMARY_DNS_SERVER" /><h3>PRIMARY DNS SERVER</h3> <p class='para'>(ormaster->ndb/dns-s)</p> <p class='para'>Youwillneedanentrylike:</p> <pre>dom=cs.bell-labs.com soa= refresh=3600 ttl=3600 ns=plan9.bell-labs.com ns=ns1.cs.bell-labs.com ns=ns2.cs.bell-labs.com mb=presotto@plan9.bell-labs.com mx=mail.research.bell-labs.com pref=20 mx=plan9.bell-labs.com pref=10 dnsslave=nslocum.cs.bell-labs.com dnsslave=vex.cs.bell-labs.com</pre> <p class='para'>inyour/lib/ndb/localfile.Youcanseeexamplesin/lib/ndb/local.complicatedthatcomeswithstandarddistribution.</p> <p class='para'>IfyouarefamiliarwithDNS,youwillfindthatentryself-explanatory.Ifnot:<ul> <li>ns-thenameofyourdnsserver,thisshouldbedefinedwithasysentry(see<a href="../Network_configuration">Networkconfiguration</a>).Youcanputallthensentriesthatserveyourdomain(masterandslaves)</li> <li>mb-theemailoftheadministrator</li> <li>mxadnpref-themailexchanger(mx)andthepreference(pref)ithas.Thelowernumberistheonewithmorepreferencewhenchoosingamailserver.</li> <li>dnsslave-thenameofyourslavednsserver(normallyotherserver).Asfarasiknowyoucan'ttransferzonestoaPlan9dnsserverautomatically,youcandistributeyourndbfileacrossyourplan9serversviafsoruseexternaltoolstoqueryaremoteserverandwritetheappropiatendbfile.SteveSimoncreatedsuchtool,seeon/n/sources/contrib/steve/zonefresh.tar.bz2.</li> <li>ttlandrefresh-thedefaultsshouldbeenoughtfornormalsetups</li></ul> </p> <p class='para'>Ifyouhaveyourzoneentryready,takealookatndbfileagaintoseeifallthenamesyouusedinthezonedefinitioncanberesolvedusingndbinformation(withentrieslikedom=plan9.bell-labs.comip=1.1.1.1orsysentriesasdescribedin<a href="../Network_configuration">Networkconfiguration</a>).</p> <a name="SLAVE_DNS_SERVER" /><h3>SLAVE DNS SERVER</h3> <p class='para'>Ineverdonethatinplan9,butisupposeislikesettingupaprimaryone.ThereisnooptionsandnoautomatictransferzonefromamastertoaPlan9dnsslaveserver.</p> <a name="COMBINATIONS_(AND_NDB/DNS_COMMAND)" /><h3>COMBINATIONS (AND NDB/DNS COMMAND)</h3> <p class='para'>ItispossibletouseamixtureofLines 1–500 of 1375. Load more
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="keywords" content="9p, 9p2000, research, Plan 9, Inferno, Unix, Open Source, Bell Labs" /> <meta name="description" content="Open source distributed operating system Plan 9 from Bell Labs." /> <link rel="stylesheet" href="/wiki-style.css" media="all" type="text/css" /> <title>Dns configuration notes (Diff)</title> </head> <body> <h1><a name="top"></a> Dns configuration notes <i>-Diff-</i></h1> <div class='body'> <!-- ***************************** --> <hr /><div class='diff_head'> <a href="index.html">Tue Mar 25 12:55:38 EDT 2014</a>, marksmith </div><hr /><span class='old_text'>First of all: <ul> <li> Configure the network as explained in <a href="../Network_configuration">Network configuration</a> </li> <li> Read the <a href="http://plan9.bell-labs.com/magic/man2html/8/ndb"><i>ndb</i>(8)</a> man page </li> </ul> <a name="LOCAL_DNS" /><h3>LOCAL DNS</h3> <pre> ndb/dns -r </pre> <p class='para'> You only need a <pre> </span><span class='new_text'>dns = 1.1.1.1 </span><span class='old_text'></pre> entry in your ipnet configuration ( see <a href="../Network_configuration">Network configuration</a> ) and that server will be used to answer dns queries. </p> <p class='para'> If you're using ip/ipconfig to configure your network via dhcp, dns entry will be automatically setup. </p> <a name="INTERNAL_DNS_SERVER" /><h3>INTERNAL DNS SERVER</h3> <p class='para'> (normally used as a dns-cache to avoid waste on bandwidth with www.google.com queries :) ndb/dns -s) </p> <p class='para'> You need to use root dns servers directly, then you can answer all the names to your clients directly (they doesn't need to go out there to ask for them, so you saves bandwidth). You will need an entry like: <pre> dom= ns=A.ROOT-SERVERS.NET ns=B.ROOT-SERVERS.NET dom=A.ROOT-SERVERS.NET ip=198.41.0.4 dom=B.ROOT-SERVERS.NET ip=128.9.0.107 </pre> see /lib/ndb/local.complicated for a complete example. </p> <a name="PRIMARY_DNS_SERVER" /><h3>PRIMARY DNS SERVER</h3> <p class='para'> (or master -> ndb/dns -s) </p> <p class='para'> You will need an entry like: </p> <pre> dom=cs.bell-labs.com soa= refresh=3600 ttl=3600 ns=plan9.bell-labs.com ns=ns1.cs.bell-labs.com ns=ns2.cs.bell-labs.com mb=presotto@plan9.bell-labs.com mx=mail.research.bell-labs.com pref=20 mx=plan9.bell-labs.com pref=10 dnsslave=nslocum.cs.bell-labs.com dnsslave=vex.cs.bell-labs.com </pre> <p class='para'> in your /lib/ndb/local file. You can see examples in /lib/ndb/local.complicated that comes with standard distribution. </p> <p class='para'> If you are familiar with DNS, you will find that entry self-explanatory. If not: <ul> <li> ns - the name of your dns server, this should be defined with a sys entry (see <a href="../Network_configuration">Network configuration</a>). You can put all the ns entries that serve your domain (master and slaves) </li> <li> mb - the email of the administrator </li> <li> mx adn pref - the mail exchanger (mx) and the preference (pref) it has. The lower number is the one with more preference when choosing a mail server. </li> <li> dnsslave - the name of your slave dns server (normally other server). As far as i know you can't transfer zones to a Plan9 dns server automatically, you can distribute your ndb file across your plan9 servers via fs or use external tools to query a remote server and write the appropiate ndb file. Steve Simon created such tool, see on /n/sources/contrib/steve/zonefresh.tar.bz2. </li> <li> ttl and refresh - the defaults should be enought for normal setups </li> </ul> </p> <p class='para'> If you have your zone entry ready, take a look at ndb file again to see if all the names you used in the zone definition can be resolved using ndb information (with entries like dom=plan9.bell-labs.com ip=1.1.1.1 or sys entries as described in <a href="../Network_configuration">Network configuration</a> ). </p> <a name="SLAVE_DNS_SERVER" /><h3>SLAVE DNS SERVER</h3> <p class='para'> I never done that in plan9, but i suppose is like setting up a primary one. There is no options and no automatic transfer zone from a master to a Plan9 dns slave server. </p> <a name="COMBINATIONS_(AND_NDB/DNS_COMMAND)" /><h3>COMBINATIONS (AND NDB/DNS COMMAND)</h3> <p class='para'> It is possible to use a mixture of