tag:blogger.com,1999:blog-4982215793068879977.post1682193476441290451..comments2023-09-07T02:56:05.540+08:00Comments on fcamel 技術隨手記: MySQL 建立連線時會延遲一下fcamelhttp://www.blogger.com/profile/04792244455260595133noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4982215793068879977.post-2306095928435374082010-02-22T21:19:47.786+08:002010-02-22T21:19:47.786+08:00Oops. No wonder the man page only mentions /etc/re...Oops. No wonder the man page only mentions /etc/resolv.conf.fcamelhttps://www.blogger.com/profile/04792244455260595133noreply@blogger.comtag:blogger.com,1999:blog-4982215793068879977.post-42586319936483775602010-02-22T21:03:24.613+08:002010-02-22T21:03:24.613+08:00This is a common problem that newbies run into. An...This is a common problem that newbies run into. Answer: host(1) and nslookup(1) does not call gethostbyname(3) or the IPv6 safe getnameinfo(3) but issue DNS requests directly.<br /><br />What you want is getent(1) from glibc:<br />getent hosts 127.0.0.1Anonymoushttps://www.blogger.com/profile/18195653023013629876noreply@blogger.com