|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
dns example files questions
I spent a couple of days trying to get my dns server to work. I a noob in dns affairs. I think there is not enough clear informatins about dns, just some code dumps. Anyways, DNS has beaten me. I cannot configure my dns to work. I think admitting defeat shows character on my part. Now, I'm asking one of you guys who has defeated the evil DNS lord to give me some help; to post sample configuration files to the configuration I'm about to mention. Bear in mind that I have looked at the generic sample configurations on the around the net, but still cannot figure it out.
This is what I'm trying to do. I have a windows xp maching and a red hat 8 box connected together. The linux maching has the local address 192.168.0.2 and the windows machine has 192.168.0.1. The widows machine has a dsl modem with a static ip; it can connect to the internet. The linux machine connects to the internet thru the windows machine. I have the dls modem on the windows machine because I cannot get the dsl modem working on the linux maching. However, the linux maching can connect to the internet. I have apache installed on the linux box. I have bind on windows. Using the local address, I can connect to the apache server on the linux box from the windows machine using a browser by typing 192.168.0.2 What I want to do is when people go to www.mydomain.com the windows maching directs them to the linux maching so that it can serve the web files. Can someone post some dns config files so I can get this darn thing working and I'm finally able to get some sleep. INFO YOU MIGHT NEED: fictious domain-name: www.mydomain.com window machine: hostname: crawler local ip address: 192.168.0.1 static ip address: 123.45.67.8 (ficticious) bind packege located at c:\server\dns linux machine: hostname: lolita local ip: 192.168.0.2 apache installed and running. OMG!
__________________
Some day I'll create a smart quote to put here. |
|
#2
|
||||
|
||||
|
The reason you were defeated is cause it is IMPOSSIBLE!!! With or without a local DNS server it is impossible for somebody to connect to services on the LAN without routing.
I want you to think of it like this. I have a router which uses the external public IP address. I have 2 computers that connect to the internet through the router. If somebody were to try to connect to the router, nothing happens. why? Cause the router is not listening on any ports. I must tell the router to open up port 80, and direct all traffic to the LAN address 192.168.1.2. Likewise in your situation. You have a LAN consisting of 2 computers. The only difference is your "router" is the same as your computer. So your router can have open ports, but they only go to one place - the windows computer which acts as the router. Unfortunately, you can't just tell your computer to route port 80 traffic to your linux computer. Instead, you must have a program which listens on port 80 and provides routing between the client and the server. You can install a HTTP proxy, write a specific purpose program, or download a generic port redirection program someplace. An HTTP proxy is your best bet. When people connect to the proxy and send the HTTP request, the proxy will resolve the domain it was intended for, and attempt to pass the request along to the real server. In this you have two choices. Either add an entry into your HOSTS file to force resolution of a domain to 192.168.0.2, or, you can setup a DNS server and have your operating system use it to resolve dns requests. So what will it be buddy?
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > dns example files questions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|