Darkice gethostbyname error

Hi All,
I installed darkice+icecast from dietpi-software, but darkice won’t attach to icecast2.

Steps to reproduce:

sudo dietpi-software reinstall 135
sudo darkice

leads to…
DarkIce: TcpSocket.cpp:226: gethostbyname error [0]

my darkice.cfg is:

duration      = 0
bufferSecs    = 3
reconnect     = yes

device        = hw:1,0
sampleRate    = 44100
bitsPerSample = 16
channel       = 1

bitrateMode   = vbr
format        = vorbis
quality       = 0.8
server        = dietpi
port          = 8000
password      = dietpi
mountPoint    = DietPi
name          = DietPi
description   = DarkIce on DietPi
url           = http://localhost
genre         = none
public        = no
#localDumpFile = /mnt/dietpi_userdata/darkice_recording.ogg

Given the error about hostname, I looked at /etc/hosts but it seems okay…

cat hosts localhost pi
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes

Icecast2 is working fine on port 8000… Device is a raspberry Pi B3+ running DietPi v6.34.3.

I’ve explored basically every google result trying to troubleshoot this and stumped. Any thoughts?

Finally got this to work by uninstalling both icecast and darkice, then reinstalling them manually (apt-get install darkice, apt-get icecast2), then trying a few configurations until it worked. Not sure why the default dietpi install didn’t work but overcame…