General discussion


General Linux Question

By theword ·
I have a small LAN here at home, with 3 computers. I am using it for educations sake.
Now with that said here is my question.
1)I'm a little confused so I need some clarification please.
2)When using DNS, Apache on one computer on my LAN...then accessing it via another computer (which is connected to the internet) on the LAN...What do I do in order to keep it from going to the internet to search too?
3)Can you give me a framework for how DNS, Apache syncronizes in its workings. Do I need to use NFS too or will HTTP do the job for my LAN.
4)Basically, I am a bit confused on what takes place 1st, and how it is supposed to mesh together.
Again I have 3 computers, and one is connected to the internet, and they are all linked together via a hub.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

General Linux Question

by Stillatit In reply to General Linux Question

DNS (Domain Name System) is the mechanism which translates a symbolic name, like to an IP address like

Any time you make a request of either your machine or another machine for any symbolic address (dns name), *that* machine does the following:

1. It looks in its hosts file (/etc/hosts) to see if there is an entry for the name you specified. If so, it returns the IP address in the entry.

2. If you are using NIS, it asks NIS about the name, and returns the IP if found.

3. It looks at the DNS nameservers specified on that machine (typically in /etc/resolv.conf). It finds the first nameserver (aka DNS server) listed and sends a recursive query to that nameserver for the name you requested. Ifthe nameserver knows the name (either it "is authoritive" for that name or has recently looked it up), it returns the IP. If not, it starts at the right-hand end of the name, and queries a root server and then other servers for the name. (example: Looking for, it queries the root server, which tells it that the nameserver for will know. It then queries the nameserver for, which returns the IP for

YOUR nameserver (either at your site or at your ISP)tells the world about machines in your domain. It also can be (but not necessarily is) the server that your machines query when they want to know someone else's address.

Unless you do a lobotomy on your DNS server, when you make a query to it, itWILL go to the internet if it does not know the name you asked for.

NFS allows linux/unix/etc systems to share disks. It has nothing to do with DNS.

HTTP is the protocol (language) that a web browser (like Netscape) uses to talk with a web server (like apache). Again, it is a separate issue from DNS.

Good luck.

Collapse -

General Linux Question

by theword In reply to General Linux Question

So, if my computer doesnt find the ipaddress or name in the host file it looks in NIS, and if not there, in the /etc/resolv.conf file. So I think I see now. It has a specific logical sequence for finding a computer address or name.
Could you let me know if I got it or not.

Collapse -

General Linux Question

by theword In reply to General Linux Question

This question was closed by the author

Back to Linux Forum
3 total posts (Page 1 of 1)  

Related Discussions

Operating Systems Forums