»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-27-2003, 01:52 PM   #1 (permalink)
Registered User
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
meanguy21 is on a distinguished road
cant figure how to make dns work :(

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

meanguy21 is offline   Reply With Quote
Old 07-27-2003, 02:29 PM   #2 (permalink)
Registered User
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
meanguy21 is on a distinguished road
yeah, and i do have nameserver 127.0.0.1 in my resolv.conf
meanguy21 is offline   Reply With Quote
Old 07-28-2003, 07:21 AM   #3 (permalink)
Registered User
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
meanguy21 is on a distinguished road
hmmm.. well, i've done alot of reading, some say i dont need to setup MY OWN dns server. is that true? i can use my ISP dns server.
meanguy21 is offline   Reply With Quote
Old 07-28-2003, 07:25 AM   #4 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
I can't help you with the Linux specific config, but you do not have to host your own DNS. Your ISP will often do that for you.

There are other DNS service providers out there too. One example is http://www.dyndns.org (parts of this service is free).
DVNT1 is offline   Reply With Quote
Old 07-28-2003, 06:38 PM   #5 (permalink)
Registered User
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
meanguy21 is on a distinguished road
damn, im sorry i forgot to mention i was supposed to set it up on a lan
not the whole web page.
so i dont need to register anywhere
meanguy21 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:33 AM.