Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active August 29, 2015 14:04
Show Gist options
  • Save jansanchez/0e5040ae64852496c440 to your computer and use it in GitHub Desktop.
Save jansanchez/0e5040ae64852496c440 to your computer and use it in GitHub Desktop.
Cliente: nslookup

En la maquina cliente

nslookup 10.30.112.220
Server: 192.168.43.1
Address: 192.168.43.1#53

validamos el /etc/resolv.conf

sudo vim /etc/resolv.conf
domain mastermetric.net
search mastermetric.net
nameserver 10.30.112.220

Editamos las interfaces

sudo vim /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0

#iface eth0 inet dhcp
iface eth0 inet static
  address 10.30.112.221
  netmask 255.255.255.0
  network 10.30.112.0
  broadcast 10.30.112.255
  gateway 10.30.112.1
  nameserver 10.30.112.220

reiniciamos las interfaces de red

sudo /etc/init.d/networking restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment