source: BOOK/network/common/resolv.xml@ c521416c

sysvinit
Last change on this file since c521416c was 819ba78, checked in by Chris Staub <chris@…>, 10 years ago

Use nodump to prevent jhalfs from processing network config commands

  • Property mode set to 100644
File size: 2.2 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
[0d1a5ef6]11 <title>Creating the /etc/resolv.conf File</title>
[5412eda]12
[cd95991]13 <indexterm zone="ch-network-resolv">
[5412eda]14 <primary sortas="e-/etc/resolv.conf">/etc/resolv.conf</primary>
15 </indexterm>
16
17 <para>If the system is going to be connected to the Internet, it will
18 need some means of Domain Name Service (DNS) name resolution to
19 resolve Internet domain names to IP addresses, and vice versa. This is
20 best achieved by placing the IP address of the DNS server, available
21 from the ISP or network administrator, into
[1b896d0]22 <filename>/etc/resolv.conf</filename>. If at least one of your network
[82c4aa0]23 interfaces is going to be configured by DHCP then you may not need to
24 create this file. By default DHCPCD will overwrite this file when it gets
25 a new lease from the DHCP server. If you wish to manually configure your
26 network interfaces or manually set your DNS using DHCP then create the
27 file by running the following:</para>
[5412eda]28
[819ba78]29<screen role="nodump"><userinput>cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
[5412eda]30<literal># Begin /etc/resolv.conf
31
32domain <replaceable>[Your Domain Name]</replaceable>
33nameserver <replaceable>[IP address of your primary nameserver]</replaceable>
34nameserver <replaceable>[IP address of your secondary nameserver]</replaceable>
35
36# End /etc/resolv.conf</literal>
37EOF</userinput></screen>
38
[05d3e34]39 <para>The <replaceable>domain</replaceable> statement can be omitted or
40 replaced with a <replaceable>search</replaceable> statement. See the man
41 page for resolv.conf for more details.</para>
42
[5412eda]43 <para>Replace <replaceable>[IP address of the nameserver]</replaceable>
44 with the IP address of the DNS most appropriate for the setup. There will
45 often be more than one entry (requirements demand secondary servers for
46 fallback capability). If you only need or want one DNS server, remove the
47 second <emphasis>nameserver</emphasis> line from the file. The IP address
48 may also be a router on the local network.</para>
49
50</sect1>
Note: See TracBrowser for help on using the repository browser.