From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Use host and nslookup

Use host and nslookup

- [Instructor] Two tools that are included in the bind-utils package are host and nslookup. Both tools provide name resolution but are quite different. In rhhost1, log in and open a Terminal. In the Terminal, type in host google.com and hit Enter. We can see that it resolves google.com. Host is a simple tool that is useful when you just need to resolve a host name quickly. There are a few options that can be specified, but it's nowhere near as powerful as dig or nslookup. The other tool we can look at is nslookup. Nslookup is the legacy name resolution tool that uses its own resolver code as opposed to dig, which uses the operating systems. For years, nslookup came with a warning that said it was going to go away, but with the most recent versions of BIND, it seems to have been elevated back to full status. Type in clear, and then type in nslookup google.com, and hit Enter. Some things are easier when using nslookup than when using dig. And it may be more familiar to users of other…

Contents