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. |
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 |
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 |
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 |
# 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 |
Quote:
I get the same if I dig that domain from here |
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!
|
Quote:
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 |
All times are GMT -5. The time now is 02:27 PM. |