Topic awaiting preservation: Debian DNS Server... (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: f(x) |
posted 10-24-2005 23:40
I'm having the hardest time setting up my zavaboy.net domain to my Debian machine. I looked at http://www.aboutdebian.com/dns.htm and I didn't get anywhere for days. I allready reinstalled Debian countless times because I keep screwing things up. |
Maniac (V) Mad Scientist From: :morF |
posted 10-25-2005 07:10
Whenever one is looking for how to do a specific thing on Linux, a good place to turn to initially is The Linux Document Project where there are a whole bunch of good, indepth How-To documents. Including this one on Setting up a DNS Server |
Bipolar (III) Inmate From: f(x) |
posted 10-26-2005 00:09
I already looked through there... but apparently I didn't look hard enough. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 10-27-2005 15:39
I have a DNS server up and running on FreeBSD, but it uses bind, and the configuration should not be all that different on Linux and FreeBSD. I do not know if debian has bind pre-installed, but it might. code: PROTO.localhost-v6.rev PROTO.localhost.rev codetown.org localhost-v6.rev localhost.rev make-localhost named.conf named.root
code: $TTL 3600 codetown.org. IN SOA ns1.codetown.org. admin.codetown.org. ( 2005070902 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ) ; Minimum TTL ; DNS Servers @ IN NS ns1.codetown.org. ; ; Host Addresses ; localhost IN A 127.0.0.1 ns1 IN A 69.207.190.123 ns2 IN A 69.207.190.123 mail IN A 69.207.190.123 webmail IN A 69.207.190.123 hephaestus IN A 69.207.190.123 maigelbra IN A 69.207.190.123 blanda IN A 69.207.190.123 estelle IN A 69.207.190.123 prms IN A 69.207.190.123 @ IN A 69.207.190.123 www IN A 69.207.190.123 @ IN MX 10 mail.codetown.org.
code: options { directory "/etc/namedb"; pid-file "/var/run/named/pid"; query-source address * port 53; }; zone "." { type hint; file "named.root"; }; zone "0.0.127.IN-ADDR.ARPA" { type master; file "localhost.rev"; }; zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" { type master; file "localhost-v6.rev"; }; zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" { type master; file "localhost-v6.rev"; }; zone "codetown.org" { type master; file "codetown.org"; };
|
Maniac (V) Mad Scientist From: :morF |
posted 10-27-2005 17:29
That HowTo I linked to up there goes step-by-step thorugh setting up a named configuration on Linux |
Bipolar (III) Inmate From: f(x) |
posted 10-27-2005 22:10 |
Maniac (V) Mad Scientist From: :morF |
posted 10-28-2005 08:35
If you don't have a slave server, and your main server goes down, they may or may not be able to contact your site, depending on if other servers external to your comptrol cache your listing. And even then the cached listing will only last for so long before it too gets cleared. if you have a slave server it should be able to take over from your main server should it go down. Whilst it's not critical that you have a slave server, one of the first things we are taught in 'Net Design 101 is that if you can possibly afford redundancy (having more tan one of something available/running) then do it, because You Never Know. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 10-28-2005 15:13
Also if you webserver is on the same box as the DNS server it won't really matter. If your DNS goes down your webserver is down as well. |
Bipolar (III) Inmate From: f(x) |
posted 10-30-2005 20:57
I got it working! |
Maniac (V) Mad Scientist From: :morF |
posted 10-31-2005 06:55
That depends, are you using a router to make forwarding decisions based on requested port? |
Bipolar (III) Inmate From: f(x) |
posted 10-31-2005 22:04 |
Maniac (V) Mad Scientist From: :morF |
posted 11-01-2005 06:44
In that case, no, you can't. However there's the alternate HTTP port at 8080 if you wish to move your site there. Or his site there. Since you've put in the hard work of setting up the DNS server I'd say his site. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 11-01-2005 13:34
You might also be able to setup apache to forward requests for his site to him. I am sure there is a way that apache will do this, but I have not done this myself. Your webserver would switch to 80, and then port-forward to him on 81 or 8080 or something. |
Bipolar (III) Inmate From: f(x) |
posted 11-02-2005 00:11
I'm not exactly sure I'm fully understanding... Can port 8080 be used when just going to a domain without specifying any port? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-02-2005 00:30
No for you to share hosts you're going to need to have something map requests for his domainname to go to him and for your domain name to go to you, otherwise to use more than one port for your particular IP. |
Maniac (V) Inmate From: there...no..there..... |
posted 11-02-2005 12:40
you might want to put up an index.php file. Right now I get an Index of / page and some of your PHP files are not being parsed. |
Maniac (V) Mad Scientist From: :morF |
posted 11-03-2005 04:46
Well, the other possibility is to have three NICs in the DNS server, and have it map requests for him out one nic, and requests for you out another. |
Bipolar (III) Inmate From: f(x) |
posted 11-06-2005 01:46 |