View previous topic :: View next topic |
Author |
Message |
belrpr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 May 2006 Posts: 440
|
Posted: Mon Mar 05, 2007 11:24 am Post subject: BIND9 dns |
|
|
Hi,
I am replacing a windows 2003 dns server with a bind9 dns.
DNS is running and working but still have 2 problems that I like to solve:
1. How can I automaticly generate PTR of DHCP clients. So basicly if a computer with hostname gentoo1 gets an ip from the dhcp server.
I would want to be able to ping gentoo1 without knowing his ip address. The windows dns is doing this but my bind9 isn't.
2. I did 2 test to see if my bind9 is working properly compared to my windows 2003 dns.
I basicly find 2 difference:
- The windows dns gives an awnser back (Whatever this is). How can I make my bind9 do the same (Or isn't this required)
- The bind9 gives an authority back. What is this and why do I need it?
These are the results:
Windows:
Code: | ; <<>> DiG 9.3.2 <<>> kvkov.be
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15305
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;kvkov.be. IN A
;; ANSWER SECTION:
kvkov.be. 600 IN A 10.101.1.2
kvkov.be. 600 IN A 10.101.1.4
;; Query time: 1 msec
;; SERVER: 10.101.1.2#53(10.101.1.2)
;; WHEN: Mon Mar 5 11:15:56 2007
;; MSG SIZE rcvd: 58
|
Bind9 linux
Code: | ; <<>> DiG 9.3.2 <<>> kvkov.be
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3028
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;kvkov.be. IN A
;; AUTHORITY SECTION:
kvkov.be. 86400 IN SOA testserver.kvkov.be. admin.kvkov.be. 1 10800 3600 604800 86400
;; Query time: 0 msec
;; SERVER: 10.101.1.8#53(10.101.1.8)
;; WHEN: Mon Mar 5 11:14:55 2007
;; MSG SIZE rcvd: 79
|
Any help is very much appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ce110ut Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/88599572642f1108511ca1.jpg)
Joined: 27 Sep 2002 Posts: 200
|
Posted: Mon Mar 05, 2007 11:47 am Post subject: |
|
|
look up generate keyword for bind. This keyword is used on a config which lets you auto-generate ranges. I do not remember the syntax. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Demonarch n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Quake3/quake3_ranger_red.gif)
Joined: 01 Dec 2005 Posts: 12 Location: Tampere, Finland
|
Posted: Mon Mar 05, 2007 11:49 am Post subject: Re: BIND9 dns |
|
|
belrpr wrote: |
I basicly find 2 difference:
- The windows dns gives an awnser back (Whatever this is). How can I make my bind9 do the same (Or isn't this required)
- The bind9 gives an authority back. What is this and why do I need it?
|
Umm. I'm not an expert on the subject but to me it seems your BIND is lacking a suitable A-record (kvkov.be), instead of that it gives the best thing it's got in its configuration which is the SOA-record for kvkov.be.
If you want to fix this you should add a line for the A-record to your zone file. _________________ http://ssc.vekoduck.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
belrpr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 May 2006 Posts: 440
|
Posted: Mon Mar 05, 2007 2:59 pm Post subject: Re: BIND9 dns |
|
|
Demonarch wrote: | belrpr wrote: |
I basicly find 2 difference:
- The windows dns gives an awnser back (Whatever this is). How can I make my bind9 do the same (Or isn't this required)
- The bind9 gives an authority back. What is this and why do I need it?
|
Umm. I'm not an expert on the subject but to me it seems your BIND is lacking a suitable A-record (kvkov.be), instead of that it gives the best thing it's got in its configuration which is the SOA-record for kvkov.be.
If you want to fix this you should add a line for the A-record to your zone file. |
This is my zone file:
kvkov.be. IN SOA testserver.kvkov.be. admin.kvkov.be. (
1 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimun TTL of 1 day
;
; Name servers
;
kvkov.be. IN NS testserver.kvkov.be.
kvkov.be. IN NS kvksrv02.kvkov.be.
;
; Addresses for canoncial names
;
localhost.kvkov.be. IN A 127.0.0.1
testserver.kvkov.be. IN A 10.101.1.8
kvksrv02.kvkov.be. IN A 10.101.1.2 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
belrpr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 May 2006 Posts: 440
|
Posted: Wed Mar 07, 2007 8:01 am Post subject: |
|
|
Anyone can help me out? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
belrpr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 May 2006 Posts: 440
|
Posted: Thu Mar 08, 2007 10:32 am Post subject: |
|
|
Nobody? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|