Give the server a logical name. With more than one server present use numbers behind it like server1, server2 etc.
Every segment in a LAN has a gateway to the rest of the world. I use .1 for it, but some routers use .254. Reserve both addresses. In IPv6 you can use fe80::1 as router-address if you can change it in the router-setup.
Here machines are assigned IP addresses. If no nameserver is used or not reachable, every machine you want to be able to reach has to be set - one line per machine.
This line consists of the IP address, the fully qualified hostname (fullname), and the unofficial name (nickname). The IP address has to be at the beginning of the line, entries are separeted by blanks or by tab-stops. Comments are started with a '#'.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Here, network names are converted to network addresses. The format of this file resembles the hosts file. Here network names are put in front of the addresses.
default 0.0.0.0 loopback 127.0.0.0 link-local 169.254.0.0
multi on
As with /etc/host.conf, this file plays a virtual role resolving machine names by means of the resolver library.
The domain for a given machine is specified here (keyword search, together with the address of the nameserver. There can by several entries for domain names in here. If not a fully qualified name is resolved, entries in search are appended one after the other, to create a fully qualified name.
Several nameservers can be given here, each on a line of its own; these entries have to start with nameserver. Comments are entered as usual using '#'.
# Generated by NetworkManager search robkalmeijer.nl nameserver 192.168.1.13 nameserver 2001:985:395:1:21e:2aff:fe49:522c
With this we can change the IP settings for our server.