hey there, hopefully everyone's good.
well, i've been reading docs and the howto. for like 8 hours stright. i feel like im gonna break apart. it's like i have an assignment. since i never tried setting a server. i almost gave up. this crap is kinda tough. but anyways.
im sure everyone came across the dns howto in the tldp.org ,
what im supposed to do is.
get 2 domains on my machine, for example test1.com and test2.com , and have 2 different homepages on each one of them.
after googling alot and reading "sighs" it is said that i best use apache and bind9, so i need to setup the dns 1st, and then get apache to work.
i read the howto like 3 times. one of the weird problems i had. is, i never get the results as same as the howto, for example.
this is my entry in named.conf
----------
zone "linux.bogus" {
type master;
notify no;
file "/etc/bind/linux.bogus";
};
which is exactly the same as the one in the howto,
and the linux.bogus file is ,
;
; Zone file for linux.bogus
;
; The full zone file
;
$TTL 3D
@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
199802151 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
MX 10 mail.linux.bogus ; Primary Mail Exchanger
MX 20 mail.friend.bogus. ; Secondary Mail Exchanger
;
localhost A 127.0.0.1
ns A 192.168.196.2
mail A 192.168.196.4
it was also taken from the file too.
i did try changing 192.168.196.2 and .4 with my ip address, although its dynamic and tried it again.
and the results of tail -f /var/log/daemon is
Jul 27 21:52:02 Linux named[1104]: listening on IPv4 interface lo, 127.0.0.1#53
Jul 27 21:52:02 Linux named[1104]: listening on IPv4 interface ppp0, 62.150.181.108#53
Jul 27 21:52:02 Linux named[1104]: none:0: open: /etc/bind/rndc.key: permission denied
Jul 27 21:52:02 Linux named[1104]: couldn't add command channel 127.0.0.1#953: permission denied
Jul 27 21:52:02 Linux named[1104]: zone 0.in-addr.arpa/IN: loaded serial 1
Jul 27 21:52:02 Linux named[1104]: zone 127.in-addr.arpa/IN: loaded serial 1
Jul 27 21:52:02 Linux named[1104]: zone 255.in-addr.arpa/IN: loaded serial 1
Jul 27 21:52:02 Linux named[1104]: zone linux.bogus/IN: loaded serial 199802151
Jul 27 21:52:02 Linux named[1104]: zone localhost/IN: loaded serial 1
Jul 27 21:52:02 Linux named[1104]: running
---
which seems normal. except for the lines showing permission denied. i solved that in redhat by deleting "control and key" lines in named.conf in redhat. but couldn't find anything similar in debian named.conf , also i had to chmod 777 /var/run/named , cuz i did have a funny msg telling permission denied, even though i was SUed . well, the results showing when i try
Linux:/etc/bind# dig any linux.bogus
; <<>> DiG 9.2.2 <<>> any linux.bogus
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41983
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;linux.bogus. IN ANY
;; AUTHORITY SECTION:
. 55 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2003072700 1800 900 604800 86400
;; Query time: 889 msec
;; SERVER: 196.1.70.170#53(196.1.70.170)
;; WHEN: Sun Jul 27 22:01:28 2003
;; MSG SIZE rcvd: 104
where the results should be similar to this one
$ dig any linux.bogus
; <<>> DiG 9.1.3 <<>> any linux.bogus
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55239
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;linux.bogus. IN ANY
;; ANSWER SECTION:
linux.bogus. 259200 IN SOA ns.linux.bogus. \
hostmaster.linux.bogus. 199802151 28800 7200 2419200 86400
linux.bogus. 259200 IN NS ns.linux.bogus.
linux.bogus. 259200 IN MX 20 mail.friend.bogus.
linux.bogus. 259200 IN MX 10 mail.linux.bogus.linux.bogus.
;; AUTHORITY SECTION:
linux.bogus. 259200 IN NS ns.linux.bogus.
;; ADDITIONAL SECTION:
ns.linux.bogus. 259200 IN A 192.168.196.2
;; Query time: 4 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Dec 23 03:06:45 2001
;; MSG SIZE rcvd: 184
.... so meaning i can't see anything like linux.bogus, not friend or mail.
could anyone point out what im doing wrong?
if u're wondering what i've done, check out
http://www.tldp.org/HOWTO/DNS-HOWTO-1.html
i tried this on debian, and redhat. i seem to be getting no where. someone loved to give me a hard time, and said something about I have it install but im not using it.
HEEEEEEEEEEEELP