Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am compiling my own 3.14 kernel. I fear I may have left out some important networking feature to get DNS working.

I can't resolve domain names. I can ping my DNS server. I can resolve using that DNS on other machines so I know it's not the server.

~ # cat /etc/resolv.conf

~ # nslookup google.com
Address 1:

nslookup: can't resolve 'google.com'

~ # ping -c 1 google.com
ping: bad address 'google.com'

~ # ping -c 1 
PING ( 56 data bytes
64 bytes from seq=0 ttl=128 time=0.382 ms

--- ping ststistics ---
1 packets transmitted, 1 packets recieved, 0% packet loss
reound-trip min/avg/max = 0.382/0.382/0.382 ms

Any ideas what I left out? here is my config: http://pastebin.com/vt4vGTgJ


If it's not the kernel, what could I be missing? I am using busybox, statically linked. there are no shared libraries in this system.

EDIT2 The problem is with busybox. I used a precompiled one and did not have issues. I need to look into compilation options with it. Thanks for your help.


There are known issues with DNS functionality in statically-linked glibc programs (like busybox in this case), because libnss must be dynamically loaded. Building a uClibc toolchain and linking busybox against that would resolve this.

share|improve this question
Do you have any firewall configured? If so, do you block port 53 UDP/TCP? –  Jenny D Apr 11 at 14:03
No firewall, no block on port 53. I can access the DNS from another machine on the same subnet. –  AllenKll Apr 11 at 14:04
As far as i iknow you can't just disable DNS functionality by .config-options from your kernel. –  Bonsi Scott Apr 11 at 14:07
Are you sure that your DNS server @ is allowing recursive queries? For example, if you dig @ www.google.com do you get any additional info? Can you perform recursive queries against your DNS server from other machines? –  Chipster Apr 11 at 14:54
your kernel seems to be Ok, but your DNS resolving does not work. Did you obtain the nameserver IP from DHCP? is route set? try a different nameserver i.e. nameserver –  bersch Apr 11 at 15:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.