1

I had to add a DNS alias into /etc/hosts, and I've added it in first position instead of last, replacing the FQDN.

After this (not right after, but at least the next day), sudo was no more usable, saying for any command:

Sorry user is not allowed to [command] as root on [new_dns_alias]

What could be the reason of this since the sudoers file doesn't include any hostname ?

Patrick Mevzek
  • 9,921
  • 7
  • 32
  • 43
Tristan
  • 119
  • 3
  • 2
    It does, see this answer: https://superuser.com/questions/429790/sudo-command-trying-to-search-for-hostname#429890 – Jonah Benton Jun 29 '18 at 19:46
  • Ok, thanks, interesting. Now I have to test to put the internal DNS name after 127.0.1.1 and the external DNS name after IP, will it resolve FQDN to internal DNS name ? – Tristan Jun 30 '18 at 05:33

0 Answers0