allow-hotplug eth0
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
dns-domain my.domain.com
dns-nameservers 192.168.0.1 192.168.0.2
Нужно также добавлять DNS в ///etc/resolv.conf//.
search my.domain.com
nameserver 192.168.0.1
nameserver 192.168.0.2
{{tag>Linux Astra Networking}}