Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind 9 Setup on Windows XP

Status
Not open for further replies.

lpglycerine

Programmer
Oct 23, 2008
4
Hi,

I'm completely new to hosting a DNS server and was hoping I wouldn't have to but was told I might need to...

I'm trying to get my Apache server to be able to connect to its own IP address (instead of 192.168.x.x or localhost or 127.0.0.1). I need/want to be able to do this because I am running a Shoutcast server and Wowza server and basically Wowza needs to use the 'real ip address' to connect to the Shoutcast server and since they're on the same computer, it can't see the Shoutcast server.

Sooooooo.... I looked up DNS servers, found BIND 9, and found a tutorial for getting it up and running on Windows XP. I however have no idea what I'm doing with it. For example, the file db.yourdomain.com.txt...

$TTL 6h
@ IN SOA your-nameserver.yourdomain.com. hostmaster.yourdomain.com. (
2005022201
10800
3600
604800
86400 )
@ NS your-nameserver.yourdomain.com.
your-nameserver IN A 192.168.160.53

What would I replace your-nameserver.yourdomain.com with?
What would I replace hostmaster.yourdomain.com with?
What would I replace your-nameserver IN A 192.168.160.53 with?

Like I said I just want to be able to connect to my own ip address with my computer, I didn't think this would be so difficult. Any help please?
 
What would I replace your-nameserver.yourdomain.com with?

Your name server, which would be the box running BIND.

What would I replace hostmaster.yourdomain.com with?

This is actually an e-mail address, minus the @ (i.e. hostmaster@yourdomain.com)

What would I replace your-nameserver IN A 192.168.160.53 with?

Your name server's fully qualified domain name and IP address.

You should really read the manual when it comes to DNS. The basics are not that hard to understand. You can start with reading these, and similar, pages:

 
thank you for very much for the articles. I guess what is throwing me off is how do I find out (or set) the name of the box running BIND. It's Windows XP and I can go to change the name of the computer in System Properties...

The current computer name is "Desktop", Member of Workgroup "Workgroup" (instead of "Domain" which is an empty text box), and the Primary DNS Suffix of the computer is empty (under the "More" button).
 
So is the only requirement that Apache (on XP?) gets fooled into thinking that a certain name is its own external IP? That can always be accomplished by having a "hosts" file to mask the real resolution...
 
this is what I like to hear =) i'm going to go read some info on hosts files, thank you
 
The hosts file is a beautiful, beautiful thing =) Thank you both so much for your help, I can finally continue on with my project.
 
Hi Everyone,

Need help from all the experts here. Actually we bought new dell server and planned to run Apache on port 8080 and IIS on port 80. We have 2port for NIC. currntly we only using 1port.

myboss wanted the both webservers to bind together so that when it goes out to internet as port 80 and when internet users from outside access as port 80 to our website just need to type abcd.com(company site).

Planned:
Example: Internal IP Internet
IP1: 192.168.1.10 : 80 IIS ----->192.168.1.30:80
IP2: 192.168.1.20 : 8080 Apache Tomcat ----->192.168.1.30:80
GW: 192.168.1.1

how do i need to setup inorder this both can out and in as port 80, without changing the apache port. how to bind the IP address so that it will use only 1 ip address when going out. watelse method we can use.?

do we need to use second nic card? Bind or NAT. Im very confused please help me. thanks aloot
 
Not the way you've illustrated it. First, figure out when a request should go to Tomcat. Then you should be able to implement a rewrite rule (or IIS equivalent) to direct the user to the Tomcat server.

A single Address/Port combination can only be forwared to a single internal Address/Port.
 

I believe something (ISA or Apache) would need to run a reverse proxy for things to share port 80 (without redirect/rewrite). I've only done simple Apache reverse proxy, so there must be another person who knows this better...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top