|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
DNS newbie on the run
Hello
I want to have web server that serves pages in the internet ... with static IP this works fine ... Web server(fedora core 1) is hidden behind firewall, so I have allowed port 80 on my firewall (port forwarding) ... Now I wanted to use www.something.si ... I have tried to register a domain, but they told me, that I must also setup a DNS server ... or ask someone to do it for me ... I want to do it on my own ... How is this done ? Basic concepts ? I keep reading this bind howto's and I don't get it ... Which port should I let in on my firewall for DNS to be visible on the net ? I figured out that the configuration should be done with "bind configuration tool" .... What should I set there ? Should Forward Master Zone be : forward.something.si ?? Help please ... |
|
#2
|
||||
|
||||
|
DNS uses TCP and UDP port 53.
Don't think in terms of forward zones. They're just zones. A zone is a domain and all of its subdomains. So things will work like this: query for www.something.si hits your server BIND will check its named.conf to see where www.something.si is stored at. BIND will find your "something.si" zone and BIND will know that is where it should look. In your "something.si" master zone file BIND will find the IP address for www.something.si. And there you have the basics of domain resolution.
__________________
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 |
|
#3
|
|||
|
|||
|
I'm in the same boat as you are.
For 4 weeks now, I assumed that my web issues was httpd related, but I am fast learning that it is a DNS issue...... Firstly, from what I have learned, there are two options: Opperate your own DNS (allowing www.example.com to point to your server) or get another company to do it for you. Here are the obsticles I have run into.... Most companies either charge money, or have bad service. This does not mean I have looked at them all, in fact I have found very little. I am giving zoneDNS a try, maybe it'll work out for me.... Anyway, you could opperate your own also. My problem with this is that I do not know how to 'name' my server to opperate in this manner. Setting up the infomation for the zones is easy enough to do using webmin and virtualmin, ro the DNS BIND program that came with Fidora. Agian, I am unsure of how to list my server in the DNS name reg block from the people that I bought my domain name from . Help anyone? |
|
#4
|
||||
|
||||
|
You need to find where you can create your name server domains. This process is also called "registering name servers". So like if you registered example.com you would register your name servers as something like this:
ns1.example.com 127.0.0.1 ns2.example.com 127.0.0.2 And in my opinion there are very good free domain hosts out there. Last edited by SilentRage : January 22nd, 2004 at 05:50 PM. |
|
#5
|
||||
|
||||
|
help ?
What is wrong with this zone file ?
Quote:
|
|
#6
|
||||
|
||||
|
more explanation
I have a web and mail server in Demilitarized zone and I have created this zone file with redhat-config-bind on Fedora-Core-1 ...
I just want to this server to be seen from outside ... but dig gives this answer : Code:
$ dig @193.77.148.24 sb-ms.si ; <<>> DiG 9.2.2-P3 <<>> @193.77.148.24 sb-ms.si ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 5503 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;sb-ms.si. IN A ;; Query time: 218 msec ;; SERVER: 193.77.148.24#53(193.77.148.24) ;; WHEN: Thu Jan 22 19:19:55 2004 ;; MSG SIZE rcvd: 26 Help plizzz ... |
|
#7
|
||||
|
||||
|
Corrected Zone file. Read it over carefully, make sure you understand what it means. If you don't understand then ask or otherwise find out.
Code:
$TTL 86400 sb-ms.si. IN SOA ns1.needhost.com. root.sb-ms.si. ( 8 ; serial 28800 ; refresh 14400 ; retry 3600000 ; expire 86400 ; ttl ) sb-ms.si. IN NS ns1.needhost.com. sb-ms.si. IN NS ns1.needhost.com. sb-ms.si. IN MX 1 admin.sb-ms.si. sb-ms.si. IN A 195.246.8.87 www.sb-ms.si. IN A 195.246.8.87 admin.sb-ms.si. IN A 193.77.148.24 |
|
#8
|
|||
|
|||
|
Congrats
Looks like you got it up and running! A touch on the slow side, but up and running none the less.
|
|
#9
|
||||
|
||||
|
Thank you guys for all the help ...
I did't gave U enough data ... I alllready have existing DNS'ses(ns1.needhost.com.) with the company that hosts my web now ... I am very unsatisfied with their service ( and I give them money for that) .... I am trying to set up my own server (not the existing one on 195.246.8.87) and my own DNS ... I think I did'it, with your help .... I changed the file you proposed a bit ... and I set up a secondary DNS on everydns ![]() My final zone file: Code:
$TTL 86400
sb-ms.si. IN SOA ns1 webmojster (
9 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)
sb-ms.si. IN NS ns1.sb-ms.si.
sb-ms.si. IN NS ns3.everydns.net.
sb-ms.si. IN NS ns1.everydns.net.
sb-ms.si. IN MX 1 mail.sb-ms.si.
sb-ms.si. IN A 193.77.148.24
ns1.sb-ms.si. IN A 193.77.148.24
www.sb-ms.si. IN A 193.77.148.24
mail.sb-ms.si. IN A 193.77.148.24
and dig @193.77.148.24 sb-ms.si works marvelous ... (at least I think so) ... Now before I sumit the changes (set my new DNS as primary in the .si domain) I want you to look at my DNS'ses ... .... is everything OK ? Would you change anything ? Do I need a reversed zone ? |
|
#10
|
||||
|
||||
|
Thx guys
I did it ...
I have switched my page to my own new server ... And DNS works as it should ... Thank you guys once more ![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > DNS newbie on the run |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|