On Wed, Mar 4, 2015 at 2:11 PM, Raf Czlonka <rczlo...@gmail.com> wrote:
> On Wed, Mar 04, 2015 at 06:47:38PM GMT, sven falempin wrote: > > > # i did play around with the file resolv.conf > > # cat /etc/resolv.conf > > lookup file > > nameserver 127.0.0.1 > > nameserver 8.8.8.8 > > # because i dont get it i even did that > > # cat /etc/resolv.conf.tail > > nameserver 8.8.8.8 > > This is due to the fact that both 'host' and 'dig' are *DNS* lookup > utilities - for obvious reasons, they care only about 'nameserver' > entries in '/etc/resolv.conf'. For other utilities, which rely on > gethostbyname(3) and gethostbyaddr(3), the 'lookup' option specifies the > database and, if more than one, the order which is to be searched for > host information. > > In your example above, 'lookup' is only set up for '/etc/hosts' hence > utilities like 'ftp', or 'curl', fail - change it to 'lookup file bind' > (or remove that line altogether) and everything will go back to normal. > > Remove 'nameserver' options from there and, as you might expect, DNS > lookups themselves will fail. > > Raf > > YES, lookup file bind, (but i did delete the line completly and it wasnt working.) Fun fact , i actually know that but i fail to spot it . Thank you :-) -- --------------------------------------------------------------------------------------------------------------------- () ascii ribbon campaign - against html e-mail /\