source: BOOK/network/common/resolv.xml @ 5412eda

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 5412eda was 5412eda, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Add missing resolv.xml.
Fix title of choose page.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[5412eda]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-network-resolv">
9  <?dbhtml filename="resolv.html"?>
10
11  <title>Customizing the /etc/resolv.conf File</title>
12
13  <sect2 id="resolv.conf">
14    <title>Creating the /etc/resolv.conf File</title>
15
16    <indexterm zone="resolv.conf">
17      <primary sortas="e-/etc/resolv.conf">/etc/resolv.conf</primary>
18    </indexterm>
19
20    <para>If the system is going to be connected to the Internet, it will
21    need some means of Domain Name Service (DNS) name resolution to
22    resolve Internet domain names to IP addresses, and vice versa. This is
23    best achieved by placing the IP address of the DNS server, available
24    from the ISP or network administrator, into
25    <filename>/etc/resolv.conf</filename>. Create the file by running the
26    following:</para>
27
28<screen><userinput>cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
29<literal># Begin /etc/resolv.conf
30
31domain <replaceable>[Your Domain Name]</replaceable>
32nameserver <replaceable>[IP address of your primary nameserver]</replaceable>
33nameserver <replaceable>[IP address of your secondary nameserver]</replaceable>
34
35# End /etc/resolv.conf</literal>
36EOF</userinput></screen>
37
38    <para>Replace <replaceable>[IP address of the nameserver]</replaceable>
39    with the IP address of the DNS most appropriate for the setup. There will
40    often be more than one entry (requirements demand secondary servers for
41    fallback capability). If you only need or want one DNS server, remove the
42    second <emphasis>nameserver</emphasis> line from the file. The IP address
43    may also be a router on the local network.</para>
44
45  </sect2>
46
47</sect1>
Note: See TracBrowser for help on using the repository browser.