> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/linux-server-administrator/servers-configurations-centos7/domain-name-system-dns/dns-client-tools.md).

# DNS Client Tools

Install DNS Client Tool

```bash
yum install bind-utils
```

Find Available Package

```bash
rpm -ql bind-utils
```

***

### `dig`

```bash
dig IP/domain name
```

```bash
dig IP/Domain_name @localdomain
```

```bash
dig IP/Domain_Name Enter_Record_Type
```

```bash
dig -4 Enter_IPv4
```

```bash
dig -6 Enter_IPv6
```

```bash
dig IP/Domain_Name +sort
```

```bash
dig 8.8.8.8 +short
```

```bash
dig example.com AAAA +noquestion
```

```bash
dig example.com MX +short
```

```bash
dig -4 8.8.8.8 NS +noanswer
```

```bash
dig -t AAAA example.com
```

```bash
dig -t A example.com +short
```

```bash
dig example.com any
```

***

### `host`

```bash
host IP/Domain_Name
```

```bash
host -t Enter_Domain_Record IP/Domain_Name
```

```bash
host -t A example.com
```

```bash
host example.com
```

```bash
host 8.8.8.8
```

```bash
host -a example.com
```

```bash
host -4 8.8.8.8
```

***

### `nslookup`

```bash
nslookup example.com
```

```bash
nslookup -type=SOA example.com
```

```bash
nslookup example.com localdomain
```
