To configure static DNS on your Linux machine, open the interfaces file located at
/etc/network/interfaces
using a text editor of your choice.
Replace the content of that file with the content below:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.115
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
Note: The IP address you need to assign to this machine is given under "address".
/etc/network/interfaces
using a text editor of your choice.
Replace the content of that file with the content below:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.115
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
Note: The IP address you need to assign to this machine is given under "address".
No comments:
Post a Comment