LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-23-2008, 01:28 AM   #106
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63

Quote:
Originally Posted by kayasaman View Post
Thanks so much MR C. for the tips, hints and suggestions.

In terms of editors I'm using ssh sessions with nano, which I gather should be alright.

In terms of learning DNS I wish I could've taken your courses as you seem well versed in loads of things but I guess I just have to wait for it to come up in my Cisco CCNA which is starting in just under a week now and I'm already nearly finished with the first sommester having started studying for it early, also since the stuff was covered in my university degree about 4 years ago now I think.
You're welcome.

See the DNS 1 & 2 lecture notes, labs and homeworks at: http://cis68c2.mikecappella.com/ .

Also, get the O'Reilly DNS & Bind book by Albitz and Liu. It is very good.
 
Old 09-23-2008, 01:31 AM   #107
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I see character \224 for your quote characters in your post. I referred to copy/paste errors earlier. Be sure the double quotes in your named.conf file are actual ASCII quotes.
 
Old 09-23-2008, 01:33 AM   #108
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Thank you! I will look at all of them if I may

Internet howto's are great but unfortunately they don't teach you very much. This is gona be brilliant
 
Old 09-23-2008, 01:37 AM   #109
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Wow!!!! I can't believe it, it actually loaded! The quotations were html or other format, gosh I never knew these things were so sensitive.

dig @localhost optiplex-networks.com now gives me:

Code:
; <<>> DiG 9.3.4-P1.1 <<>> @localhost optiplex-networks.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 13282
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;optiplex-networks.com.         IN      A

;; Query time: 65 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Sep 23 09:36:56 2008
;; MSG SIZE  rcvd: 39
 
Old 09-23-2008, 01:38 AM   #110
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Sure, of course, download away. I really need (want to) update them to be more useful online tools, and more current. Still, I focused more on fundamentals and less on distro-specific details.

Right, How To's can be used to give you an overview of steps required, but they always fail miserably when any problem occurs. They teach blind following rather than critical thinking and learning.
 
Old 09-23-2008, 01:39 AM   #111
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Congratulations! Less thrash, more fish!
 
Old 09-23-2008, 01:39 AM   #112
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Again somethings not right as there aren't any servers or domains listed
 
Old 09-23-2008, 01:43 AM   #113
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
This is the zone file I'm working with:

Code:
;
; BIND data file for example.com
;
$TTL    604800
@       IN      SOA     ns1.optiplex-networks.com. info.optiplex-networks.com. (
                            2008092305         ; Serial
                                  7200         ; Refresh
                                   120         ; Retry
                               2419200         ; Expire
                                604800)        ; Default TTL
;
       IN      NS      ns1.optiplex-networks.com.
optiplex-networks.com.    IN      MX      10      mail.optiplex-networks.com.
optiplex-networks.com.    IN      A       192.168.1.50
gx110.optiplex-networks.com.    IN     A      192.168.1.51
ns1.optiplex-networks.com       IN      A       192.168.1.51
www.optiplex-networks.com       IN      A       192.168.1.50
mail.optiplex-networks.com              IN      A       192.168.1.50
ftp.optiplex-networks.com       IN      A       192.168.1.51
mail.gx110.optiplex-networks.com        IN      A       192.168.1.51
ferrari3200.optiplex-networks.com       IN      A       192.168.1.5
optiplex-networks.com.   IN      TXT     "v=spf1 ip4:192.168.1.50 a mx ~all"
mail                    IN      TXT     "v=spf1 a -all"
have checked with checkzone-named and says Ok! Other then that; here phishy phishy???
 
Old 09-23-2008, 02:04 AM   #114
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
hmm even nslookups are failing:

Code:
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find optiplex-networks.com: SERVFAIL
We're almost there though I can feel it!

Last edited by kayasaman; 09-23-2008 at 02:05 AM.
 
Old 09-23-2008, 02:08 AM   #115
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You are missing some trailing periods in your zone file (eg ftp.optiplex-networks.com should be ftp.optiplex-networks.com.)
 
Old 09-23-2008, 02:15 AM   #116
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Ok fixed that issue but still no luck I don't get it?

I also did a quick fix on the NS record too according to the PDF which I glazed over suggested by Mr C.

so in zone file NS record looks like:

Code:
optiplex-networks.com.       IN      NS      ns1.optiplex-networks.com.

Last edited by kayasaman; 09-23-2008 at 02:16 AM.
 
Old 09-23-2008, 02:36 AM   #117
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Your previous usage of the NS record was also correct - a zone file uses a remember-last-name policy, so that you can eliminate the name portion when the previous name was the same. Frankly, I think this form of syntax is plain silly and adds needless complexity for the sake of saving a few characters (and perhaps allowed the author to boast his lexical parsing prowess).
 
Old 09-23-2008, 02:40 AM   #118
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
OK, so I decided to take your zone file and save it on my Debian box (the one I loaded bind on yesterday). Stock standard Debian setup, except for the change to named.conf.local and the necessary zone file.

Here's the output:
Quote:
dig @localhost optiplex-networks.com

; <<>> DiG 9.3.4-P1.1 <<>> @localhost optiplex-networks.com
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15481
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;optiplex-networks.com. IN A

;; ANSWER SECTION:
optiplex-networks.com. 604800 IN A 192.168.1.50

;; AUTHORITY SECTION:
optiplex-networks.com. 604800 IN NS ns1.optiplex-networks.com.

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Sep 23 17:34:27 2008
;; MSG SIZE rcvd: 73
I'd suggest you start with a clean named.conf (I posted one earlier), and you should be good to go.
 
Old 09-23-2008, 02:42 AM   #119
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
SERVFAIL can indicate that bind did not load the zone file, and yet it knows it is authoritative for the zone.

Contrast this with NXDOMAIN which would mean bind received a negative response.

Always look at your logs after reloading bind. See anything?
 
Old 09-23-2008, 02:44 AM   #120
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Again spoken like a man who knows his stuff! But for us mere mortals or well just me in particular, whats going on how come I'm not getting any name resolution with dig or nslookup commands?? Zone file checks out; is actually quite similar to the implementation I had created in my Cisco box, slightly different syntax but hey who's counting.
......So where does the problem lie I wonder?
 
  


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
DNS Master Server Configuration in CentOS5.2 rajendrapoudel Linux - Server 41 09-11-2008 03:05 AM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
DNS Server: Master/Slave Swakoo Linux - Networking 3 06-30-2006 04:58 AM
CAN I MAKE A SECONDARY _(slave) DNS FROM A PRIMARY (master)?? eder_michael11 Linux - General 0 05-29-2006 12:24 PM
Master/Slave server DNS emailssent Linux - Networking 2 10-04-2004 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:32 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
Open Source Consulting | Domain Registration