Getting bind to know something, what ist not in his zone

Bill Manning bmanning at ISI.EDU
Tue Jan 2 23:50:48 UTC 2001



Hum... AT.  Perhaps a poor choice:

26% dig at. ns

; <<>> DiG 8.2 <<>> at. ns 
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 6
;; QUERY SECTION:
;;      at, type = NS, class = IN

;; ANSWER SECTION:
at.                     1d16h43m5s IN NS  NS3.AUSTRIA.EU.NET.
at.                     1d16h43m5s IN NS  NS2.UNIVIE.AC.at.
at.                     1d16h43m5s IN NS  NS.EU.NET.
at.                     1d16h43m5s IN NS  NS1.UNIVIE.AC.at.
at.                     1d16h43m5s IN NS  NS.UU.NET.
at.                     1d16h43m5s IN NS  NS7.UNIVIE.AC.at.

...

	Do you want to pretend to be Austria?

Note that .INT is just as bad.

27% dig int. ns

; <<>> DiG 8.2 <<>> int. ns 
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 5
;; QUERY SECTION:
;;      int, type = NS, class = IN

;; ANSWER SECTION:
int.                    1d16h41m19s IN NS  NS.ISI.EDU.
int.                    1d16h41m19s IN NS  NS0.JA.NET.
int.                    1d16h41m19s IN NS  NS1.CS.UCL.AC.UK.
int.                    1d16h41m19s IN NS  NS.UU.NET.

.....

	The INT zone is -NOT-, as some folks believe, for "internal"
	use, But is reserved for "Internet Infrastructure" and "International
	Treaty Organizations".

Try picking something like "localdomain" or "myhouz" .... or check
with ICANN to see if they have a recommendation for what to use in your
never-to-be-connected-to-the-Internet-in-any-way network.

	----------------------------------------------------------

% 
% HI
% 
% for my private lan i set up a dns running p7
% 
% I made a zone "at" and i wanted bind to return 192.168.66.3 (for the
% internal lan) when it gets asked for "local.domain.at".
% 
% That was working.
% 
% But when I asked my bind for example www.domain.at or www.123123abc.at it
% did return a answer. (because i have no entry in my "at" file) !!! BUT I
% HAVE SET THE FORWARD INFORMATION!
% 
% Is there a possibility to get it running or do i have to make a second dns?
% one for forwarding www stuff and another that answers the local stuff?
% 
% Thanks for helping
% 
% CU marco
% 
% 
% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%  /etc/named.conf
% // This is a configuration file for named (from BIND 8.1 or later).
% // It would normally be installed as /etc/named.conf.
% 
% options {
%  directory "/var/named";
% 
%  forwarders {
%   123.45.11.11;
%   123.45.11.10;
%   };
% 
% };
% 
% zone "." {
%  type hint;
%  file "root.hint";
% };
% 
% zone "at" {
%  notify no;
%  type master;
%  file "pz/at";
% };
% 
% zone "66.168.192.in-addr.arpa" {
%  notify no;
%  type master;
%  file "pz/192.168.66";
% };
% 
% zone "0.0.127.in-addr.arpa" {
%  type master;
%  file "pz/127.0.0";
% };
% 
% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
% /var/named/pz/at
% 
% $TTL 3D
% @               IN      SOA     ns1local.domain.at. support.domain.at. (
%     200101021 ; serial, todays date + todays serial
%                                 8H        ; Refresh
%                                 2H        ; Retry
%                                 4W        ; Expire
%                                 1D )      ; Minimum TTL
% ;
%                    NS      ns1local.domain.at.
% ;
% localhost  A 127.0.0.1
% 
% ns1local.domain  A 192.168.66.3
% 
% local.domain A 192.168.66.3
% 
% local.domain2 A 192.168.66.4
% 
% local.domain3 A 192.168.66.5
% 
% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
% /var/named/192.168.66
% 
% $TTL 3D
% @  IN SOA nsllocal.domain.at. support.domain.at. (
%     2001010202       ; Serial
%     8H      ; Refresh
%     2H      ; Retry
%     4W      ; Expire
%     1D )    ; Minimum TTL
%    NS      ns1local.domain.at.
% 
% 3   PTR ns1local.domain.at.
% 
% 3   PTR local.domain.at.
% 4   PTR local.domain2.at.
% 5   PTR local.domain3.at.
% 
% 
% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
% /var/named/127.0.0
% 
% $TTL 3D
% @  IN SOA ns1local.domain.at. support.domain.at. (
%     1       ; Serial
%     8H      ; Refresh
%     2H      ; Retry
%     4W      ; Expire
%     1D )    ; Minimum TTL
% 
%    IN NS      ns1local.domain.at.
% 
% 1   PTR     localhost.
% 
% 
% 
% 
% 
% 
% 


-- 
--bill



More information about the bind-users mailing list