Thursday, August 7, 2008

.local domain name tweaks

Lately i suffered from a incompatible DNS zone name condition in my openSuSE 11.
I set up a small network, with "lab.local" internal DNS zone. nslookup,dig,host and other DNS utilities resolved names in it fine, but ping,gethostip and other gethostname()-derived apps didnot.
The reason was the feature of the current resolver algorithm in linux.
in order to fix it I had to add "mdns off" line into /etc/host.conf.
"man host.conf" !