[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 > /etc/resolv.conf << "EOF" |
---|
| 29 | <literal># Begin /etc/resolv.conf |
---|
| 30 | |
---|
| 31 | domain <replaceable>[Your Domain Name]</replaceable> |
---|
| 32 | nameserver <replaceable>[IP address of your primary nameserver]</replaceable> |
---|
| 33 | nameserver <replaceable>[IP address of your secondary nameserver]</replaceable> |
---|
| 34 | |
---|
| 35 | # End /etc/resolv.conf</literal> |
---|
| 36 | EOF</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> |
---|