DNS: A hard to crack nut!
Week 6 :-
Apparently, Linux kernel does not seem to have a DNS resolver! The fundtion gethostbyname() first checks /etc/hosts and if no entries are found, it makes a direct socket connection with the ip address given in resolv.conf and fetches the DNS resolved ip address!
I would do a in-kernel DNS implementation from scratch, but apparently, there are many issues with it. Its not so easy as it originally seemed! Read this response by a certain Josh Graessley in the MAC OS X community who understands Darwin probably. So did the Linux Kernel Hackers actually chose not to have DNS in-kernel for some real-world reasons?
More information we need, but a change of track in the project is apparent. We have decided to move on to the /net/tcp implementation and work with IPs for now.
No comments yet.
Leave a Reply
-
Recent
- A test script to fetch over HTTP on command-line
- Where to hook onto the tcp stack?
- Basic framework ready!
- “fsnet_create” a good plan?
- Glendix on Routers?
- DNS: A hard to crack nut!
- My first /net code commited!
- Learning to write a Systhetic Filesystem on Linux
- Discussion on 9Fans
- Plan 9 Cheat Sheet
- Network internals of Plan 9
- Initial reading and analysis
-
Links
-
Archives
- April 2009 (3)
- March 2009 (3)
- February 2009 (5)
- January 2009 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS