Re: Problem with resolv.conf and search list
Bernd Eckenfels writes: - host is not using the system resolver but contacting name servers directly. - You may want to use ping to check it, instead. That's what exactly what I tried before. Does not work either :-( -- -- Bruno
Re: Problem with resolv.conf and search list
Philippe Troin writes: - The parser for resolv.conf is very stupid. - Try: - -search lifl.fr univ-lille1.fr -search iut-info.univ-lille1.fr -nameserver 134.206.10.18 -nameserver 134.206.1.4 -nameserver 134.206.1.15 It does not work either because with this configuration only the last domain is searched for (aka iut-info.univ-lille1.fr) and am unable to find host in domain univ-lille1.fr. The man page of resolv.conf says there may be only on search line containing only 6 domains and which must not be longer than 256 characters. My configuration respect exactly that, but it does not work. I would like to have a look at the code just in order to understand how is the job done ? Did someone know in where the code of the resolver is situated : glibc (maybe get_host_by_name) ? -- -- Bruno
Re: Problem with resolv.conf and search list
Le Sun, Sep 16, 2001 at 02:26:49AM +0200, Bruno BEAUFILS ecrit : {watney-root-/etc}# host sole sole.lifl.fr does not exist (Authoritative answer) {watney-root-/etc}# host sole.iut-info.univ-lille1.fr sole.iut-info.univ-lille1.frA 134.206.40.114 Did you simply try dig, instead of host ? -- (0 Francois CerbelleO) |\ _,,,---,,_ //\ mailto:[EMAIL PROTECTED] /\\ZZZzz /,`.-'`'-. ;-;;,_ V_/ Cell: (+33/0) 603 015 512\_V |,4- ) )-,_. ,\ ( `'-' '---''(_/--' `-'\_)
Problem with resolv.conf and search list
There is something I do not understand about resolving hostnames. It seems the search primitive of resolv.conf does not work properly in sid, nor in woody. Let's see some of my configuration files : resolv.conf search lifl.fr univ-lille1.fr iut-info.univ-lille1.fr nameserver 134.206.10.18 nameserver 134.206.1.4 nameserver 134.206.1.15 - host.conf order hosts,bind multi on - Then I know a host which is called sole.iut-info.univ-lille1.fr and want to be able to call it by its short name sole. The resolver is unable to find it. Let's see it with an example : {watney-root-/etc}# host sole sole.lifl.fr does not exist (Authoritative answer) {watney-root-/etc}# host sole.iut-info.univ-lille1.fr sole.iut-info.univ-lille1.frA 134.206.40.114 Why did the resolver stop searching after the first search entry (not trying univ-lille1.fr and so on) ? Did I miss something or is it a bug ? -- -- Bruno
Re: Problem with resolv.conf and search list
[moving the discussion to [EMAIL PROTECTED] Bruno BEAUFILS [EMAIL PROTECTED] writes: There is something I do not understand about resolving hostnames. It seems the search primitive of resolv.conf does not work properly in sid, nor in woody. Let's see some of my configuration files : resolv.conf search lifl.fr univ-lille1.fr iut-info.univ-lille1.fr nameserver 134.206.10.18 nameserver 134.206.1.4 nameserver 134.206.1.15 - The parser for resolv.conf is very stupid. Try: search lifl.fr univ-lille1.fr search iut-info.univ-lille1.fr nameserver 134.206.10.18 nameserver 134.206.1.4 nameserver 134.206.1.15 Phil.