Monthly Archives: September 2013

FreeBSD – Define or add (extra) nameservers

In FreeBSD there is a file named ‘resolv.conf’ where the dns servers are located.

If you want to add an extra DNS server you have to edit this file.

Log in with root.
# ee /etc/resolv.conf

You will probably see something like:
domain yourdomain.local

To add an extra nameserver, all you have to do is add an extra nameserver.
Your file will look like this:

domain yourdomain.local

FreeBSD – Snapshot is corrupt when you update the ports tree

When you try to update your ports tree by running the command:

# portsnap fetch update

After some files you will get a error message:

snapshot is corrupt

This is probably due the fact that the portsnap fetch update command hasnt been executed for some time,
and that it needs to get a lot of updates.

The solution:
# rm /var/db/portsnap/tag && portsnap fetch extract

This will download a complete new ports tree.