LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2003, 03:09 PM   #1
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
DNS- Whats wrong here?


Im trying to set my DNS up and I dont know what Ive done wrong and what not. Here are my config files.

192.rev.zone:


; Address to host name mappings.
;
@ IN SOA ctprime.comptechhq.com. brian.ctprime.comptechhq.com (
1999022702 ; Serial
21600 ; Refresh
1800 ; Retry
604800 ; Expire
86400 ) ; Minimum
IN NS ctprime.comptechhq.com
10 IN PTR ctprime.comptechhq.com



comptechhq.com.zone:


$TTL 1d
;
; The CompTechHQ.com domain database
;
@ IN SOA ctprime.comptechhq.com. brian.ctprime.comptechhq.com (
2000031301 ; Serial
21600 ; Refresh
1800 ; Retry
4w ; Expire
1h ) ; Negative cahce TTL
; Define the nameservers
IN NS ctprime.comptechhq.com.
; Define the mail servers
IN MX ctprime.comptechhq.com.
;
; Define the hosts in this zone
;
ctprime IN A 192.168.1.102
IN MX 5 ctprime.comptechhq.com
;
; Define the aliases in this zone
;
www IN CNAME ctprime.comptechhq.com.
news IN CNAME ctprime.comptechhq.com.



named.conf:


options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "caching-example/named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
allow-update { none; };
};

zone "0.168.192.in-addr.arpa" {
type master;
file "192.rev.zone";
};

zone "comptechhq.com" {
type master;
file "comptechhq.com.zone";
};
key "key" {
algorithm hmac-md5;
secret "asqweygxbqkuyYTfaweuyJVyjvwefDvhytfyWW};




Those are the config files that I myself modified or created. Ive been reading a book that is helping me but it doesnt really explain what to do when youve done all of this and try to "nslookup" your DNS and it times out. I hope that some one can help me with this
 
Old 01-20-2003, 07:57 PM   #2
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 30
A few questions:

1) Is bind running? (It's a simple question, but if it ain't running you're not going to get any names resolution).

2) What's in your /etc/resolv.conf file?

3) Are you incrementing your serial number every time you modify your zone files?

4) Are you reloading your nameserver after modifying zone files?
 
Old 01-21-2003, 12:20 AM   #3
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
I un commented the lines for starting BIND in the rc.inet2 file. (thats the only file in rc.d that mentions the starting of BIND on my nix box.) ALthough when I do a ps -aux , I really cant tell if its on or not which makes me think no.

the above file called 192.rev.zone is my resolve file.


I dont know if im incrementing the serial, I know I need to but I dont knwo wether I am or not.


I dont know if I am reloading my nameserver after modifying my zone files.



This is my first time setting up DNS so please forgive me if I sound like an idiot.
 
Old 01-21-2003, 04:05 PM   #4
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
you are missing a . at the end of line:
IN MX 5 ctprime.comptechhq.com



And i dont know how long the serial can be but i always use 9 characters(year,month,day,update) in stead of 10 numbers.
 
Old 01-22-2003, 01:25 AM   #5
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
would that one little . really effect everything?
 
Old 01-22-2003, 04:18 PM   #6
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
I believe Ive made some progrees...

If you look at the above posted named.conf file youll notice that the named.ca and named.local were being directed to a file that didnt even exist. hehe. well, anyways I got it to where when I do:

# nslookup

> server 127.0.0.1
(changes to server to 127.0.0.1 like it should)

then I type:

> www.comptechhq.com

and I get this:

** server cant find www.comptechhq.com: SERVFAIL


Obviously somethings wrong but I dont know what. Could it be that I dont have apache and or the website up yet? If not, what else might the problem be?

Last edited by bripage; 01-22-2003 at 06:42 PM.
 
Old 01-22-2003, 07:07 PM   #7
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
perhaps I shall try to set up apache ... unless anyone else has some suggestions.
 
Old 01-22-2003, 11:42 PM   #8
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,224

Rep: Reputation: 78
Missing dot

Quote:
Originally posted by bripage
would that one little . really effect everything?
Surprisingly... yes. I'd bet it's caught most people configuring bind at least once.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats wrong with this dist. anti.corp Debian 10 11-28-2005 06:53 AM
Whats wrong with this script??? Sammy2ooo Linux - Networking 2 08-24-2004 06:20 AM
whats wrong with the keyboard?? masand Linux - General 5 03-19-2004 09:22 AM
whats wrong with my sound? HNjerry Linux - Software 0 03-02-2004 11:12 AM
Whats wrong with this? OlRoy Programming 2 05-28-2003 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration