LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-28-2014, 04:59 PM   #1
v4r3l0v
Member
 
Registered: Dec 2013
Posts: 136

Rep: Reputation: Disabled
Is it that web browsers invoke resolver routines? What other process(es) can do that?


Hi,
I am digging through CentOS networking files and their corresponding man pages and found on the resolv.conf file that resolver routines are reading this file the first time they are invoked by a process. I am trying to visualize this and am thinking that one example would be a web browser sending a http request that causes resolver to read resolv.conf. Anything more realistic than my petty example?
It continues saying the resolver reads /etc/hosts first and then resolv.conf. Isn't the sequence set in nsswitch.conf? If so, which section of nsswitch- hosts, networks or services?
 
Old 03-29-2014, 04:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by v4r3l0v View Post
Anything more realistic than my petty example?
Any application that doesn't come with its own resolver basically. Basic apps like wget, curl or GET could be examples. BTW yours isn't a petty example.


Quote:
Originally Posted by v4r3l0v View Post
It continues saying the resolver reads /etc/hosts first and then resolv.conf. Isn't the sequence set in nsswitch.conf?
Yes.


Quote:
Originally Posted by v4r3l0v View Post
If so, which section of nsswitch- hosts, networks or services?
Since the system call is gethostbyname and since you'd need to know what host to connect to before you can do anything with a service (port) I'd say the hosts section.
 
  


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
Web browsers cannot open the local web servers? shams Linux - Networking 4 08-24-2012 01:14 AM
how does shell invoke a process? gr8linux Linux - Newbie 2 06-16-2009 06:07 AM
LXer: Comparison Between Linux Web Browsers - Review of 5 Linux Browsers LXer Syndicated Linux News 0 05-17-2008 02:21 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 11:29 PM
web browsers Diesel16 Linux - Newbie 1 01-29-2002 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:56 PM.

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
Open Source Consulting | Domain Registration