Zone File IP address/Hostname

Torinthiel torinthiel at data.pl
Fri Apr 1 06:10:32 UTC 2011


On 04/01/11 03:47, Tony MacDoodle wrote:
> Hello,
>  
> I am trying to configure 2 different domains on one host that only has
> one physical interface plummed.
>  
> I think I have an errorthat I list the hostname of the interface in both
> zone files as below and this might be why I can't resolve properly. Do
> you see any mistakes in the files below?
> The only active interface is 192.168.5.5

and you can't resolve properly from where? From localhost? That's
probably because you've configured BIND to only listen on external
address, not the local one. In this config (listen-on { 192.168.5.5; };)
it won't accept local queries, as these come to 127.0.0.1.

But from other box command
dig rac-scan.rac.local @192.168.5.5 should work.

Are there any relevant messages in logs? What are the error
messages/results when you try to resolve? How you test if resolution works?

Having bind run multiple zones is absolutely normal, and there are no
reasons to require more than one IP address with that.
Torinthiel


>  
> root:/var/named# cat named.conf
> options {
>         listen-on-v6 { none; };
>         listen-on { 192.168.5.5; };
>         directory "/var/named";
> };
> zone "0.0.127.in-addr.arpa" {
> type master;
> file "db.127.0.0";
> };
> zone "rac.local" {
> type master;
> file "db.rac";
> };
> zone "rac2.local" {
> type master;
> file "db.rac2";
> };
> zone "10.168.192.in-addr.arpa" {
> type master;
> file "db.192.168.10";
> };
> zone "20.168.192.in-addr.arpa" {
> type master;
> file "db.192.168.20";
> };
>  
> root:jedi:/var/named# cat db.rac
> $TTL 86400
> @       SOA     jedi root ( 2 10800 3600 604800 600 )
>         NS      jedi
> localhost               A       127.0.0.1
> rac-scan                A       xxx.xxx.xxx.xxx
>                         A       xxx.xxx.xxx.xxx
>                         A       xxx.xxx.xxx.xxx
>                         MX      10 rac-scan
>  
> root:jedi:/var/named# cat db.rac2
> $TTL 86400
> @       SOA     jedi root ( 3 10800 3600 604800 600 )
>         NS      jedi
> localhost               A       127.0.0.1
> rac2-scan               A       xxx.xxx.xxx.xxx
>                         A       xxx.xxx.xxx.xxx
>                         A       xxx.xxx.xxx.xxx
>                         MX      10 rac2-scan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20110401/f6142245/attachment.bin>


More information about the bind-users mailing list