Setup issue: dig command not found


Console output during setup:

Checking your domain name . . .
./discourse-setup: line 32: dig: command not found

Installing dnsutils fixed it, but discource could check the dependency :slight_smile:

(Jeff Atwood) #2

What Linux distro does not have dig installed by default? What are you using?


It’s a fresh installed Ubuntu Server 16.04 Xenial (LTS)

(Jay Pfaffman) #4

I admit that I’ve not installed Ubuntu server from an ISO in a while, but I’ve not seen a system that didn’t have dig installed. And my newmachine script doesn’t add it, so that means that I’ve almost certainly not encountered a system in the past long while that doesn’t include it.

What did you install from? What did you select during the install?

I’ll add a test for dnsutils, but this page also suggests that dnsutils is installed by default.

(Jeff Atwood) #5

I agree this can’t be right; Ubuntu absolutely has dig installed by default or our 30 minute EZ cloud install instructions, which recommend and use Ubuntu 16.04 LTS server x64, literally would not work.


It’s a pre-installed VPS by a hosting provider with ubuntu-minimal. So in the minimal distro dnsutils are not provided.

(Jay Pfaffman) #7

Hmm. Well, it seems like an edge case, but it’s an easy enough test to add, @codinghorror?

(Jeff Atwood) #8

I think if you know you are on ubuntu-minimal you should know what to do, so … no.