LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2012, 12:11 PM   #1
mohitnarula
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Rep: Reputation: Disabled
DNS Tutorial Question 3. Linuxzoo.net


Hello everyone,

I have spent hours trying to figure this out but don't think am going anywhere near.

So the Question is:

Create a brand new forward zone for domain "sillynet.net" in the named configuration directory /var/named/. For this you should create a new zone file called "sillynet.zone" (copying named.localhost to sillynet.zone might be a good starting point). Add this file, along with its zone information, to the configuration file /etc/named.conf.

This zone should give:

sillynet.net -> IP address 12.0.0.20
www.sillynet.net -> IP address 12.0.0.30
Hints. It is a master type. The zone file must be readable by the user "named". Remember to use "service named reload" when you change the config file.

Now the things which I have to check are as follows:


sillynet.zone has A record for .20 PASSED
sillynet.zone has A record for .30 PASSED
sillynet.zone has ZONE record in named.conf PASSED
Check sillynet.net resolves FAILED
Check www.sillynet.net resolves FAILED


A. "named.conf" file:

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "sillynet.net" IN {
type master;
file "sillynet.zone";
allow-update(none;
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


B. "sillynet.zone" file:

$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum

NS @
sillynet.net A 12.0.0.20
www.sillynet.net A 12.0.0.30



This where I'm not able to get it right. Dunno what should I do. Can anyone please help as soon as possible.
 
Old 11-12-2012, 01:08 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,769

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Hi,

You have some errors in the zone file. The SOA and NS RRs are wrong, so better use the following zone file:
Code:
$TTL 1D
@ IN SOA sillynet.net. rname.invalid. (
1 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum

@ NS sillynet.net. 
sillynet.net. A 12.0.0.20
www.sillynet.net. A 12.0.0.30
Regards
 
Old 11-12-2012, 01:20 PM   #3
mohitnarula
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Unhappy

Thanks very much for your reply there mate. I was desperately waiting for someone to reply.

I made all the changes you stated in your comment. Reloaded the service again, but it is still not working for some reason.

Thanks

Mohit
 
Old 11-12-2012, 01:40 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,769

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Please give more details. What is not working?
Can you resolve the domain using your dns, like:
Code:
dig sillynet.net @12.0.0.20
 
Old 11-12-2012, 01:52 PM   #5
mohitnarula
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
# dig sillynet.net @12.0.0.20

; <<>> DiG 9.8.0-P4-RedHat-9.8.0-7.P4.fc15 <<>> sillynet.net @12.0.0.20
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11061
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;sillynet.net. IN A

;; ANSWER SECTION:
sillynet.net. 7200 IN A 85.13.133.100

;; AUTHORITY SECTION:
sillynet.net. 148723 IN NS ns5.kasserver.com.
sillynet.net. 148723 IN NS ns6.kasserver.com.

;; ADDITIONAL SECTION:
ns5.kasserver.com. 148723 IN A 85.13.128.3
ns6.kasserver.com. 148723 IN A 85.13.159.101

;; Query time: 353 msec
;; SERVER: 12.0.0.20#53(12.0.0.20)
;; WHEN: Mon Nov 12 19:51:22 2012
;; MSG SIZE rcvd: 127
 
Old 11-12-2012, 04:16 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,769

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
;; ANSWER SECTION:
sillynet.net. 7200 IN A 85.13.133.100
Is that answer what you're expecting to see?
I get the same if I dig that domain from here
 
Old 11-13-2012, 02:53 AM   #7
mohitnarula
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
I mean this is not what i'm expecting, as this is redirecting to the actual IP of www.sillynet.net. which it shouldn't as I've set up a different IP for it in the new forward zone. Plus, I couldn't get the name resolved to.. If you look up in this thread to my acutual post. The things which are coming up as FAILED, that's what I am actually looking for to PASS!
 
Old 11-13-2012, 03:53 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,769

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
If you look up in this thread to my acutual post. The things which are coming up as FAILED, that's what I am actually looking for to PASS!
It should work as both sillynet.net and www.sillynet.net have A RRs and the authoritative dns is sillynet.net.
I've looked at the tutorial you're following, but i don't how the tests are made. Anyway from the previous test your dns is supposed to run on localhost, so you maybe have to use:
Code:
dig sillynet.net @localhost
 
  


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 Tutorial Question 3. Linuxzoo.net mohitnarula Fedora 1 11-12-2012 03:15 PM
Serial to net? net2ser, sredird how-to or tutorial? matiasar Linux - Software 7 08-06-2008 08:42 PM
linuxzoo.net mimithebrain Linux - General 3 11-04-2006 02:26 PM
Tutorial: Installing Debian, net installer, DSL, x86 machiner Debian 4 04-25-2005 03:39 PM
DNS tutorial LinuxRam Linux - Newbie 4 09-12-2004 06:38 AM


All times are GMT -5. The time now is 10:32 PM.

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