|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Dns - For Ip Address
I bought a domain name, and im running apache server on static ip..
now how direct this domain to my ip, how does DNS work, do i need to install a DNS server as well as a apache web server? i know how to redirect the domain to URL eg static, but when it says enter Name Server, What Is this for someone running Windows XP, with apache, static IP? Do i install DNS server, if so, how does it work etc Thanks in Advance |
|
#2
|
||||
|
||||
|
This is how they work. You bought a domain name, and your registrar will place your domain name in the internet domain database. This database only stores the domain and who the HOST for that domain is. The HOST will have all the information about that domain (IP addresses for instance) stored on their server. So your registrar is asking you who your domain hosts are. Typically you should have 2.
You have a few choices at this point. 1) Host the domain yourself by installing a DNS server and configuring it for your domain. Then you'll need to create your DNS server domains somewhere in your account. Typically, if your domain was "example.com" you would create "ns1.example.com" and "ns2.example.com". When creating those domains you also specify the IP address for them. If you only have 1 computer, specify the same IP address for both if it lets you. If it doesn't, you could try to specify the IP address of one of your ISP's caching servers (but this is generally a bad practice). If you like this option, install BIND and you can get a basic configuration set at: http://www.dollardns.net/bind/ 2) Buy yourself a virtual server. A virtual server is where you get an account on somebody elses server and you get full reign over it. Usually BIND would come already installed and you can configure it for your domain and use IT as your DNS host. Once again you'll need to create the server domains. 3) Use some other company or friend as your DNS host. You can sign up for an account and setup your domain on it. Then you plug in that person's or company's DNS servers as your DNS hosts. If you like this option I can help you at: http://www.dollardns.net/hosting.html.
__________________
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 Last edited by SilentRage : May 21st, 2004 at 05:12 PM. |
|
#3
|
|||
|
|||
|
Ok Thanks...
Thanks for that, just a comment with the 2nd and 1st option, with the 2nd option, what aspect of creating the server domains would one have to do...
I have a static ip, im ready to use it.. and... 1st option, you say i need to create domains ns and ns1 example how would i do this, does bind really do it?? basically im ready to host, using my static ip, and id prefer to use nameservers as my resolving then redirecting with masking so do i create these 2 domains with bind?? im about to go to your site now, thankyou very much... |
|
#4
|
||||
|
||||
|
You create domains only if they don't already exist (for instance if the domains are based upon the domain you bought). Created domains are NOT based upon information stored on your host servers. You create the domains with your registrar account. You specify the domain names and IP's so that resolving software knows where to look to get information about your domain and subdomains.
So look for a place where you can enter IP addresses and you've probably found where you can create your host domains. These host domains can be anything you want. It is merely traditional that you use "ns1" and "ns2" prefixes. Last edited by SilentRage : November 24th, 2003 at 09:12 AM. |
|
#5
|
|||
|
|||
|
Hmm
Ohh youve gone really technically,... I bought a domain (yes)
mydomain.com. so if i want to host a ns1 and ns2 on mydomain do i need to buy another domain is that what your saying? i want to host a website with apache, and im sure if i type in the IP address, which is all i have apart from the domain name in the registar account, the only place i can do this apart from redirecting is (nameserver) ns1, ns2 etc so my question is, I HAVE a static IP, but obviosuly cant use that to enter into ns1 and ns2 on my domain account, so i install bind, and somehow configure that to resolve my ip to www.mydomain.com thats basically what i want. ... you say ... look for a place where i can enter ip addresses, (i obviosuly cant enter my static ip in the name server, cos it wont resolve will it? i think im on the right track step 2, install BIND, configure it to use my static ip and resolve to a domain name the tricky bit is how do i put ns1.mydomain.com in BIND, im about to install it now.. is that hard to create ns1.mydomain.com how would i do that? ta, site looks good, you should charge for hosting, least $1 a month, start making a monthyl income, as for your 3 mbit link, lucky u, the future is ONLINE regards, back to code |
|
#6
|
||||
|
||||
|
I do charge for reseller hosting. I won't charge for native hosting cause it is not reliable enough.
Anyway, I'm going to stop being vague. These are the steps to register and get your domain hosted the way you want it done. The following steps are done using your registrar account: Step 1) Buy mydomain.com Step 2) Create ns1.mydomain.com to point to 202.9.60.185 Step 3) Create ns2.mydomain.com to point to 202.9.60.185 Step 4) Set ns1.mydomain.com and ns2.mydomain.com as a host of mydomain.com The following steps are done on your computer at 202.9.60.185 Step 5) Install BIND to "C:\windows\system32\dns" Step 6) Copy http://www.dollardns.net/bind/ config files to "C:\windows\system32\dns\etc" Step 7) Copy http://www.dollardns.net/bind/rndc.key to "C:\windows\system32\dns\etc" Open "C:\windows\system32\dns\etc\named.conf" in notepad Step 8) Change "DNS" to "BIND" near the top of the file Step 9) Change all instances of "basiczone.com" to "mydomain.com" Step 10) Change all instances of "0.0.127" to "60.9.202" Navigate to folder "C:\windows\system32\dns\etc" Step 11) Rename "basiczone.com.zone" to "mydomain.com.zone" Step 12) Rename "0.0.127.IN-ADDR.ARPA.zone" to "60.9.202.IN-ADDR.ARPA.zone" Open "C:\windows\system32\dns\etc\mydomain.com.zone" in notepad Step 13) Change "basiczone.com" to "mydomain.com" Step 14) Change all IPs to "202.9.60.185" Open "C:\windows\system32\dns\etc\60.9.202.IN-ADDR.ARPA.zone" in notepad Step 15) Change "0.0.127" to "60.9.202" Step 16) Change all instances of "basiczone.com" to "mydomain.com" Step 17) Delete all lines with the word "PTR" in them Step 18) Append line "185 PTR mail.mydomain.com." Open the Control Panel Open Administrative Tools Open Services Right-click "ISC BIND" and select properties Change Startup Type to "Automatic" Press "Start" If the server terminated unexpectedly: Open the Control Panel Open Administrative Tools Open Event Viewer Double-click all red flagged "named" entries Read the error messages. Fix if you can figure out what it means, otherwise, ask more questions. Last edited by SilentRage : May 21st, 2004 at 05:14 PM. |
|
#7
|
|||
|
|||
|
thanks, im awake
ok, im about to do this, but obviously i dont have those files named.conf etc
Step 11) Rename "basiczone.com.zone" to "mydomain.com.zone" Step 12) Rename "0.0.127.IN-ADDR.ARPA.zone" to "60.9.202.IN-ADDR.ARPA.zone" and i dont have those files, ive seen them on your server so i will go look now... or do i just create mydomain.com.zone in notepad? i have nothing to put in them.. ill check your site thanks for your help, maybe you should copy that text so you can give it to people.. saves you typing it any more.. regards.. |
|
#8
|
|||
|
|||
|
Heya
I hope your there, isnt it
06.9.202 not 60.9.202 i dont themm all as 60.9.202 its not totally reversed it it, if my ip is 202.9.60.185 let me know, im sure its 06.9.202 thanks |
|
#9
|
|||
|
|||
|
Ok this has happened
Ok, im running apache on ip 10.0.0.1 with static ip
202.9.60.185 i changed all the files to 06.9.202 BTW i get these messages in event viewer when i run.. It looks like it binded to ip 10.0.0.1 (which is what i think i want) as im behind a alcatel 4 port router.. now heres the messages... set maximum stack size to 0: not implemented set maximum data size to 0: not implemented set maximum core size to 0: not implemented set maximum open files to 0: not implemented listening on IPv4 interface Loopback Interface 1, 127.0.0.1#53 listening on IPv4 interface TCP/IP Interface 2, 10.0.0.1#53 command channel listening on 127.0.0.1#953 zone 06.9.202.in-addr.arpa/IN: loading master file 06.9.202.IN-ADDR.ARPA.zone: file not found Now, i got port forwarding setup for port 80 on the alcatel modem, this line 10.0.0.1#53 does this mean i need to allow port 53? what does port 53 do, should i setup port forwarding to enable it to work.. and that arpa file not found error, i cannot debug that.. hope to see you soon.. thanks |
|
#10
|
||||
|
||||
|
I've edited step 6 to be more clear.
If you did step 12 you would not get that error file not found Make sure you correct the reverse IP editing as I told you. As for typing instructions over and over, I plan on writing a BIND installation tutorial on my site eventually and I'd be linking everybody to that. I'll also be writing a config file generator so people wouldn't have to edit those files themselves. Last edited by SilentRage : November 25th, 2003 at 08:43 AM. |
|
#11
|
|||
|
|||
|
Ok i actually forgot the .zone when i edited the 60 to be 06
another question, when i plan on running another website say mydomain2.com what do i do, thanks for all your help i appreciate it, good luck with your hosting |
|
#12
|
|||
|
|||
|
And...
do you have any tips for someone behind a alcatel router with ip 10.0.0.1 will BIND work with this IP? whats this about port 53? I have port forwarding enabled for 80 web server.. so do i enable port 50? will my ns1.mydomain.com work if im hosting from IP 10.0.0.1 can you shed some light on any of this? thanks |
|
#13
|
||||
|
||||
|
yes. All my instructions will work even though you are behind a router. Here's what you need to do with that router:
Forward port 53 UDP to 10.0.0.1 (Required) Forward port 53 TCP to 10.0.0.1 (Recommended) To add another domain: Your named.conf has a zone section for mydomain.com Create another section just like it for mydomain2.com with the appropriate zone specification and filename. Copy mydomain.com.zone to mydomain2.com.zone and edit it as appropriate. Please read the manual if you want a true understanding of how to configure named.conf. Read file: Bv9ARM.html Last edited by SilentRage : November 25th, 2003 at 09:36 AM. |
|
#14
|
|||
|