Unix DNS config Question
nel
Member Posts: 2,859 ■□□□□□□□□□
hey guys,
ive been learning some unix stuff for work and are working through some of the basics using this online unix lab website at uni. it gives you various tasks to complete and verifies they are correct. At the minute im playing about with DNS zones on fedora creating forward and lookup zones.
The question asks you to configure several requirements, which i have done. You can see below i have completed all but one requirement:
forward zone record in named.conf PASSED
reverse zone record in named.conf PASSED
forward zone file has A record for test.com PASSED
forward zone file mentions .10, .11, and .12 PASSED
reverse zone file mentions .1, .10, .11, and .12 PASSED
MX records in file are present PASSED
Check test.com resolves PASSED
Check www.test.com has all A records PASSED
Check reverse test.com resolves PASSED
Check reverse www.test.com resolves FAILED
Check MX for test.com PASSED
Ive checked the /var/log/messages and the zones are loading ok. So im guessing its the way i have configured thereverse zones! Could anyone help me out here. i think its going to be something REAL EASY i have missed haha, but i cant see it for the love of money! test.com resolve but www.test.com does not
Any help or guidance would be much appreciated guys.
Below is my named config file which includes the new test forward and reverse zones:
Below is my reverse zone test.rev
ive been learning some unix stuff for work and are working through some of the basics using this online unix lab website at uni. it gives you various tasks to complete and verifies they are correct. At the minute im playing about with DNS zones on fedora creating forward and lookup zones.
The question asks you to configure several requirements, which i have done. You can see below i have completed all but one requirement:
forward zone record in named.conf PASSED
reverse zone record in named.conf PASSED
forward zone file has A record for test.com PASSED
forward zone file mentions .10, .11, and .12 PASSED
reverse zone file mentions .1, .10, .11, and .12 PASSED
MX records in file are present PASSED
Check test.com resolves PASSED
Check www.test.com has all A records PASSED
Check reverse test.com resolves PASSED
Check reverse www.test.com resolves FAILED
Check MX for test.com PASSED
Ive checked the /var/log/messages and the zones are loading ok. So im guessing its the way i have configured thereverse zones! Could anyone help me out here. i think its going to be something REAL EASY i have missed haha, but i cant see it for the love of money! test.com resolve but www.test.com does not
Any help or guidance would be much appreciated guys.
Below is my named config file which includes the new test forward and reverse zones:
controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { type hint; file "named.ca"; }; zone "test2.com" IN { type master; file "test.zone"; allow-update { none; }; }; zone "1.16.172.in-addr.arpa" IN { type master; file "test.rev"; allow-update { none; }; }; include "/etc/rndc.key";
Below is my reverse zone test.rev
-bash-2.05b# cat test.rev $TTL 86400 @ IN SOA localhost. root.localhost. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1 IN PTR test.com. 11 IN PTR www.test.com. 12 IN PTR www.test.com. 13 IN PTR www.test.com.
Xbox Live: Bring It On
Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking
Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking
Comments
-
nel Member Posts: 2,859 ■□□□□□□□□□Do'h!!! just realised my mistake my bad hahaha!!!!
such an amateur thing to do haha. basically my ip's were incorrect!!! shud of been 10, 11,12 hahaXbox Live: Bring It On
Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking -
darkerosxx Banned Posts: 1,343Do'h!!! just realised my mistake my bad hahaha!!!!
such an amateur thing to do haha. basically my ip's were incorrect!!! shud of been 10, 11,12 haha
If those are just records, I don't see how changing the IPs would fix your test, unless it was testing that they returned those specific numbers? -
nel Member Posts: 2,859 ■□□□□□□□□□darkerosxx wrote: »If those are just records, I don't see how changing the IPs would fix your test, unless it was testing that they returned those specific numbers?
yeah the were testing against exact ip's.Xbox Live: Bring It On
Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking