(note the us-west-2 in the second block versus the us-west-1 in the first), and I no longer got the "unable to resolve host" error. sudo certbot -nginx: manually entered the things, got the same output as before. sudo: unable to resolve host vultr.guest Podemos evitar esse erro alterando o nome do host. output: same message as I previously listed in the passed messages. Com o nome do host padro definido, sudo com o seguinte erro. Attempt to use the sudo command after updating the hosts file and it should work. sudo certbot -nginx -d band-manager.ca -m -agree-tos -n. To address this issue update the hostname or FQDN of the Archiving server in the /etc/hosts file and save the file. # DO NOT EDIT THIS FILE BY HAND - YOUR CHANGES WILL BE OVERWRITTENĪfter creating a new DHCP option set with domain= and applying that to my VPC, once I restarted my EC2 instance, the nf file looked like this # Dynamic nf(5) file for glibc resolver(3) generated by resolvconf(8) echo hi hi sudo echo hi sudo: unable to resolve host rpi3: Name or service not known sudo: pamopensession: Permission denied sudo: policy plugin failed session initialization I suspect the root cause to be related to the two later lines as I have not changed the hostname since the setup and /etc/hosts and hostname seems to be all good. Solution: This issue can occur if the host name is not updated or incorrect in the /etc/hosts file. As a result, when the machine was started, the EC2 scripts that set up the machine were putting this into my nf file # Dynamic nf(5) file for glibc resolver(3) generated by resolvconf(8) First, login to root user with the following command: su - root Next, see the content of the /etc/hosts file using the following command: cat /etc/hosts You should see the following screen: As you can see, there is no such record of your hostname (newpc). The DHCP Option Set for my VPC was pointing at us-west-1 but my new VPC was in us-west-2. I had this issue when I copied settings from one availability zone to another.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |