wrong ttl time for dns entries on bind 9.7 with suse 11.4 server
hello together
i'm working on this issue a longer time but i dont find a solution. i have a ibm server with suse linux 11.4. the following services are installed and configured: dhcp 4.2.1 and bind 9.7 (isc.org). if i connect a client (notebook, printer, computer, etc.) to this network i receive a correct ip address and it also put this client client to the dns lease list - but with the wrong TTL time! Lease is always for 1h, doesent matter what i have configured (default lease time for this zone is 3d12h). has somebody an idea? Code:
# /etc/named.conf Code:
# /var/lib/named/sfs-intra.net.hosts (zone file) |
I don't know if I get it right. Lease time is for the IP address, which is given by DHCP server, the configuration you are posting is for the bind server which has nothing to do with IP lease times. TTL is the time a name is cached on a DNS server (time it doesn't have to ask another server to know the IP). Are you mixing concepts or have I misunderstand the question?
|
thank you for your answer. you're right!
there are two lease times. one for the dhcp server to spread ip addresses and the other to cache dns entries on bind server. dhcp lease time is working well with standard 7 days. i have some problems with the dns cache default ttl time. it always set the dns entries for 1h. but i have configured this default ttl in the zone file for 3 days 12 hours ($ttl 302400)! dont know why it always takes 1h??? |
First of all, my named.conf has a logging section, why don't you add one so that you can check logs and see what is happening?.
Does resolv.conf have the nameserver pointing correctly? Did your ISP resolved the name for you in the past and you changed that so that they resolv name using your server? Maybe the name is being resolved by your ISP and querys are not being redirected to your server. It's strange, you said TTL is 1h, but I get 2hs when I dig your name. ; <<>> DiG 9.7.3 <<>> sfs-intra.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2491 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13 ;; QUESTION SECTION: ;sfs-intra.net. IN A ;; ANSWER SECTION: sfs-intra.net. 7200 IN A 209.62.20.229 I'm sorry but I am running out of ideas. |
sorry for my delay.
i also have a logging section. i just deleted this part from the config file for the forum entry cause its not interessting. it's a local domain. everything is the same. same configuration, same services. dont know why it's not working. |
All times are GMT -5. The time now is 04:38 PM. |