On Thu, 1 Aug 2024, Greg Wooledge wrote: > On Thu, Aug 01, 2024 at 14:30:05 +0000, fxkl4...@protonmail.com wrote: >> my nsswitch.conf is "hosts: files mdns4_minimal [NOTFOUND=return] dns" >> i don't remenber changing it in the past few decades >> i recently had a situation that made me question the ordering >> my dns server is my primary router >> should dns be first > > It would be *extremely* unusual to want to consult DNS before /etc/hosts. > I recommend leaving files first unless you have a *really* good reason > to switch them. > > I have no comment on mdns4_minimal because I don't really know what that > is. >
i have mysql on host1 i created a user for mysql so i could have access from 192.168.1.% that works fine on host2 i use "mysql -u user1 -p --host=host1" and it works if on host1 i use "mysql -u user1 -p --host=host1" it fails ERROR 1045 (28000): Access denied for user 'user1'@'localhost' (using password: YES) in /etc/hosts i have "127.0.1.1 host1.my-network host1" if i comment this line out, accessing mysql from host1 works