name resolution problems
I have to change name resolution for RedHat 5 system so that the name will be resolved to "real" IP address ( assigned to eth0) vs. loopback. I have dns server from my provider, so in /etc/nsswitch.conf resolution via /etc/hosts is first, and via dns service second
hosts: files dns
and I changed "/etc/hosts":
#192.168.1.19 is assigned to eth0
192.168.1.19 myhost.mydomain.com myhost
"hostname -f" now returns "myhost.mydomain.com" but is it enough to assume that name resolution working?
The application software still fails due to name resolution problems... Is there anything else i should do ?
Also, how can i set /etc/hosts name assignment for dynamic ( DHCP assigned) address, vs. static?