host issue to resolve itself
hi guys
I have standalone Suse 10 SP3 that when I run Code:
# hostname Code:
# host webserver Code:
host webserver Code:
host x.x.x.x Code:
x.x.x.x webserver Code:
webserver any idea how to make to resolve to itself? thanks a lot |
the host command is for dns lookups only. it won't use data in /etc/hosts. so if you specifically want to resolve that data using dns then you'd need a dns server that contains that record, possibly dnsmasq. However other programs, e.g. ping use a stack as defined in /etc/nsswitch.conf to resolve names, not just dns, so maybe you're troubleshooting the wrong issue and there's no problem to addres in the first place.
|
but I really don't want to use DNS since it is not needed.
in that case hostname will check if the hostname is correct right? |
hostname -i
|
All times are GMT -5. The time now is 10:01 AM. |