Almost There ...
Desmond Coughlan
desmond at cybercable.fr
Mon May 21 08:44:33 UTC 2001
Le 18.05.01, Kevin Darcy a écrit :
{snip}
>You should be able to follow the RIPE example files, with one major
>exception: you need to put a $TTL xxxx at the top of each master zone file,
>where xxxx is the value, in seconds, that you want to be the default TTL for
>the records in the zone. See doc/misc/migration for more details.
I hadn't read that file, as it states that it's aimed at those who are
migrating from 4 to 9. :)
I took each zone file, namely "127.0.0", "company.com.db", and
"localhost", and had a look at them, especially since dmesg was revealing
that the master zone files could not be loaded, as there was no TTL
specified. So your comment looks to be the right one.
Question is: where do I put the TTL ?
For the file 127.0.0, I placed it as follows :
// 127.0.0
0.0.127.in-addr.arpa. SOA dnsx.company.internal.com. dns.company.fr. (
172800 ; TTL
2000051800 ; Serial Number
86400 ; Refresh 1 Day
7200 ; Retry 2 hours
3600000 ) ; Expire 41.67 days
Nope ... didn't work.
Then, I tried :
// 127.0.0
$TTL 172800 ;
0.0.127.in-addr.arpa. SOA dnsx.company.internal.com. dns.company.fr. (
2000051800 ; Serial Number
86400 ; Refresh 1 Day
7200 ; Retry 2 hours
3600000 ) ; Expire 41.67 days
Still no luck.
Then I tried :
// 127.0.0
TTL 172800 ;
0.0.127.in-addr.arpa. SOA dnsx.company.internal.com. dns.company.fr. (
2000051800 ; Serial Number
86400 ; Refresh 1 Day
7200 ; Retry 2 hours
3600000 ) ; Expire 41.67 days
Nope ...
# dmesg |grep -i named
May 21 10:25:23 dnsx /usr/local/sbin/named[173]: [ID 866145 daemon.notice]
starting BIND 9.1.2
May 21 10:25:25 dnsx /usr/local/sbin/named[173]: [ID 866145
daemon.warning] the default for the 'auth-nxdomain' option is now 'no'
May 21 10:25:26 dnsx /usr/local/sbin/named[173]: [ID 866145 daemon.error]
dns_master_load: 127.0.0:1: no TTL specified
May 21 10:25:26 dnsx /usr/local/sbin/named[173]: [ID 866145 daemon.error]
dns_zone_load: zone 0.0.127.in-addr.arpa/IN: loading master file
127.0.0: no ttl
May 21 10:25:26 dnsx /usr/local/sbin/named[173]: [ID 866145 daemon.error]
dns_master_load: company.internal.com.db:1: no TTL specified
May 21 10:25:26 dnsx /usr/local/sbin/named[173]: [ID 866145 daemon.error]
dns_zone_load: zone company.internal.com/IN: loading master file
company.internal.com.db: no ttl
>Note also that the BIND 9 documentation has a section dealing with zonefile
>format. You could read that to get a better idea of what everything in the
>examples actually *does*.
>> I have /etc/namedb/root.hints
>>
>> What is the next step, after having defined company.com.db ? Can I start
>> named, and expect it to get the zone data for the file .bk ?
>Before you go to the second step, you should start/restart the master server
>and query it for some names in company.com to make sure you get authoritative
>answers. If you're not getting authoritative answers, that indicates a
>problem loading the zone file. If your master is not answering
>authoritatively, zone transfers won't work, so it's worthwhile to check this
>out before you attempt any master/slave replication.
I know that zone transfers aren't working, as the file that BIND should
create, in /etc/namedb isn't there. If I change /etc/resolv.conf to read
nameserver 192.168.3.191 and run :
# nslookup
Authoritative answers can be found from:
(root) nameserver = C.ROOT-SERVERS.NET
(root) nameserver = D.ROOT-SERVERS.NET
(root) nameserver = E.ROOT-SERVERS.NET
(root) nameserver = F.ROOT-SERVERS.NET
(root) nameserver = G.ROOT-SERVERS.NET
(root) nameserver = H.ROOT-SERVERS.NET
(root) nameserver = I.ROOT-SERVERS.NET
(root) nameserver = J.ROOT-SERVERS.NET
(root) nameserver = K.ROOT-SERVERS.NET
(root) nameserver = L.ROOT-SERVERS.NET
(root) nameserver = M.ROOT-SERVERS.NET
(root) nameserver = A.ROOT-SERVERS.NET
(root) nameserver = B.ROOT-SERVERS.NET
*** Can't find server name for address 192.168.3.191: No information
*** Default servers are not available
Any ideas ?
Thanks.
D.
--
Desmond Coughlan |Restez Zen ... UNIX peut le faire
desmond at cybercable.fr |YGL#4 YFC#1 YFB#1 UKRMMA#14 two#38
http://www.chez.com/desmondcoughlan/
Clé Publique: http://www.chez.com/desmondcoughlan/pgp/pubring.pkr
More information about the bind-users
mailing list