The archives for December 30th, 2007


Dic 30

Settare the DNS from commando line.

figotip.jpgIt must editare the /etc/resolv.conf rows:

  • I sudo gedit /etc/resolv.conf;
  • to add:
    nameserver 208.67.222.222
    nameserver 208.67.220.220;
  • to save the rows.

In order to test this configuration to type one of the following commandos:
$ google.com host
$ dig google.com
$ ping google.com
$ nslookup your-domain.com

If the output is valid (as in the example under brought back) or it is in a position to making ping to the remote serveur via hostname then means that the DNS works correctly.

Output of google.com host from mine finishes them:
google.com has address 64.233.167.99
google.com has address 72.14.207.99
google.com has address 64.233.187.99
google.com 10 mails is handled by smtp2.google.com.
google.com 10 mails is handled by smtp3.google.com.
google.com 10 mails is handled by smtp4.google.com.
google.com 10 mails is handled by smtp1.google.com.