Configuring DNS with the /etc/resolv.conf File

To use true DNS, you need access to at least one domain name server. It doesn’t matter where this server is—most name servers are configured to allow queries from anywhere on the Internet, with no restrictions on who makes the queries. This practice is on the wane, however, and in most circumstances you will want to use only the name server addresses provided by your ISP or enterprise network administrator.

Name servers are specified in the /etc/resolv.conf file, an example of which follows:

search example.com
nameserver 64.41.131.132

nameserver 207.78.98.20
nameserver 64.40.111.102

The nameserver keyword specifies a name server’s IP address; you can have as many of these as you like, and the order ...

Get FreeBSD6 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.