LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-06-2004, 04:16 PM   #1
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Rep: Reputation: 15
Resolver Error


Hi, i'm having problems with resolving hostnames on busybox. Busybox was built statically using glibc-3.2.3.
On my busybox system I have the following (network related) files in /etc :

host.conf
hosts
networks
nsswitch.conf
protocols
resolv.conf
services

contents as follows:

host.conf:
order hosts, bind
multi on

hosts:
127.0.0.1 localhpst

networks:
loopback 127.0.0.0
localnet 127.0.0.0

nsswitch.conf:
passwd: compat
group: compat
hosts: files dns
networks: files
services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
bootparams: files
automount: files
aliases: files

protocols:
too much to mention

resolv.conf:
nameserver 62.31.176.39
nameserver: 194.117.134.19
search

services:
too much to mention.

When I try and ping for example, www.bit-tech.net I get the following:

Code:
# ping bit-tech.net
ping: bit-tech.net: Unknown host
Similarly another example:

Code:
wget http://bit-tech.net/anyfile.blah
wget: bit-tech.net: Unknown host

IP addresses work fine, and the machine in question is even able to sucessfully act as a webserver. If i add an entry for bit-tech.net into /etc/hosts, then pinging bit-tech.net works fine, so i know the hosts file is acting as it should!
Is there something i need to compile into my kernel?

Any help appreciated, i've spent all day trying to sort this out.

Last edited by RTT; 04-06-2004 at 04:17 PM.
 
Old 04-06-2004, 04:38 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
search (your ISPS NAME HERE)
 
Old 04-07-2004, 07:15 AM   #3
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Original Poster
Rep: Reputation: 15
doesn't work either is there something i have missed and not compiled into my kernel?
 
Old 04-07-2004, 07:51 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
check the system logs. is there anything wrong?

try nslookup like this:

[root@linux root]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> set q=any
> server 212.58.4.2
Default server: 212.58.4.2
Address: 212.58.4.2#53
> bit-tech.net

can u get the answer on your screen about bit-tech.net?
 
Old 04-07-2004, 02:19 PM   #5
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Original Poster
Rep: Reputation: 15
Fixed it - i'll explain what I did for the benefit of any others who might happen to come across the same problem.

I'd compiled busybox-1.00-pre8 statically (can't be bothered to go into the reasons why). It seems that glibc attempts to use the libnss_* libraries dynamically even when compiling stuff in static mode.
So I built uClibc and re-built busybox using that, again statically, and all works good now

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dns client resolver Fraudulent Suse/Novell 2 05-17-2005 11:12 AM
Bind 9 resolver? oddo Linux - Networking 3 08-30-2004 07:31 PM
Resolver error in dcgui-qt NonSumPisces Linux - General 0 07-04-2004 08:12 PM
Resolver problems after upgrade (7.3 -> 9.0) cmora111 Linux - Networking 0 02-24-2004 01:17 PM
"NON-RECOVERABLE RESOLVER ERROR" when installing ports jamminparidise *BSD 1 02-11-2004 09:33 PM


All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration