On Sunday 04 Jan 2015 18:45:38 Urs Schütz wrote: > On 01/04/15 15:20, Mick wrote:
> > In my /etc/hosts I have something like this: > > > > # IPv4 and IPv6 localhost aliases > > 127.0.0.1 cad.homeLAN localhost cad > > > > ::1 cad.homeLAN localhost cad > > > > See if this solves your problem. > > > > PS. I remember a thread in this M/L about the correct way to configure a > > domain name and why how the Gentoo Handbook was wrong. I think there was > > a bug opened about it, too. > > Setting up /etc/hosts exactly as above did resolve the slow hostname -f > lookup. > > urs@cadd ~ $ time hostname -v -f > gethostname()=`cadd' > Resolving `cadd' ... > Result: h_name=`cadd.homeLAN' > Result: h_aliases=`localhost' > Result: h_aliases=`cadd' > Result: h_addr_list=`::1' > cadd.homeLAN > > real 0m0.001s > user 0m0.000s > sys 0m0.000s > > :-) Thanks for your help. You're welcome! :-) Please note that I assumed the name of your host PC is "cad" and the arbitrary name of your local domain is "homeLAN". You may want to change these to suit your needs. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.