Unable to resolve host hassbian. Error? duckdns

Receiving this error, why?

pi@hassbian:~/duckdns $ cat duck.log
OKpi@hassbian:~/duckdns $ sudo service cron start
sudo: unable to resolve host hassbian
pi@hassbian:~/duckdns $ sudo service cron start
sudo: unable to resolve host hassbian
pi@hassbian:~/duckdns $ ./duck.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2 0 2 0 0 2 0 --:–:-- --:–:-- --:–:-- 2
pi@hassbian:~/duckdns $ cat duck.log
OKpi@hassbian:~/duckdns $ sudo service cron start
sudo: unable to resolve host hassbian
pi@hassbian:~/duckdns $

I’ve only seen this issue in 1 scenario. When I changed the hostname and forgot to reboot.

Might it be your case?

Otherwise it might also be an issue in the ./etc/hostname and or /etc/hosts…

check that hots and hostname files match…

sudo nano /etc/hosts
sudo nano /etc/hostname

looks like a dns error

Yep, it was that, shouldn’t be fixed automatically by the institallation?