Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

hostname: No address associated with hostname

Writer Sebastian Wright

Good day! I am using 20.04.3 Ubuntu server on my Raspberry Pi 4,

I am using my Rp4 as Pi-hole w/ unbound as well as a docker, everything went fine except for 1 which is the the title of my post

I did try the following

  1. removing the resolv.conf sudo rm /etc/resolv.conf and then create a new one sudo nano /etc/resovl.conf

    RESULT: nothing happend

  2. I put this in my /etc/host

    10.124.10.20 homelab-ubuntu-server
    127.0.0.1 localhost

    RESULT: still getting the error

I'm running out of option on what to do with it.

Note: I always do a sudo reboot now every time i change my host and hostnames and I still see myself as a beginner in linux

Additional Info:

my netplan is setup like this:

ethernets: eth0: addresses: - 10.124.10.20/24 gateway4: 10.124.10.1 nameservers: addresses: [10.124.10.20] optional: true

Thanks

2

1 Answer

I have time to troubleshoot again and I found the solution and it's all my mistake

I am editing the wrong file all along!! haha damn, it should be /etc/hosts not /etc/host

after editing the /etc/hosts and restarting the system, the hostname: No address associated with hostname is now gone

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy