Re: bind difficulties

From: J.O. Aho (user_at_example.net)
Date: 11/20/03


Date: Thu, 20 Nov 2003 13:48:01 +0100

James Hastie wrote:
> My DNS server is resolving remote domains (for example - google.com) but not
> resolving local domains.
> IT is Bind v 8.
> Im not sure what it is and would apprepicate some help from somebody.
>
> My network is jameshastie.com and jason is the apache, dns, gateway, proxy
> etc server.
>
> I'm not sure where the problem in BI ND is occuring so here are two of the
> relevant config files.
>
> name.conf http://home.iprimus.com.au/j_hastie/named.conf
>
> db.jameshastie http://home.iprimus.com.au/j_hastie/db.jameshastie

Bind is quite difficult, and i ahve just followd instructions found with 'bind
configure' at google.com

Think this setting would be a lot better:

$TTL 3D
@ IN SOA ns.jameshastie.com. hostmaster.jameshastie.com. (
                         199802151 ; serial, todays date + todays serial #
                         8H ; refresh, seconds
                         2H ; retry, seconds
                         4W ; expire, seconds
                         1D ) ; minimum, seconds
;
               NS ns.jameshastie.com. ; Inet Address of name server
               MX 10 mail.jameshastie.com. ; Primary Mail Exchanger
               A 192.168.0.1
;

jason A 192.168.0.1
mail CNAME jason.
ns CNAME jason.
gw CNAME jason.
www CNAME jason.
proxy CNAME jason.
sizlack A 192.168.0.2
james CNAME sizlack.
emma A 192.168.0.3
kate A 192.168.0.5
mac A 192.168.0.4

; Delegations
foo NS dns1.foo.jameshastie.com.
dns1.foo A 192.168.0.1

And then you need to make a backward lookup table too, call it
0.168.192.in-addr.arpa.zone and add it to your named.conf in the same manner
as the others have been.

$TTL 3D
@ IN SOA ns.jameshastie.com. hostmaster.jameshastie.com. (
                         200311201 ; serial, todays date + todays serial
                         8H ; refresh, seconds
                         2H ; retry, seconds
                         4W ; expire, seconds
                         1D ) ; minimum, seconds
;

@ IN jameshastie.com.
1 PTR jason.jameshastie.com.
2 PTR sizlack.jameshastie.com.
3 PTR emma.jameshastie.com.
4 PTR mac.jameshastie.com.
5 PTR kate.jameshastie.com.

This for you will be able to do both

  host james.jameshastie.com

and

  host 192.168.0.1

Don't forget that the db.jameshastie will override the real one that is
locakted at DNS:es outside your system and therefore will not
apache..jameshastie.com work locally.

I would suggest you make the local machines to have a local domainname, that
isn't part of the real world domainnames, as you may get problems with
services that are bind to a ip-number.

  //Aho



Relevant Pages

  • Re: bind difficulties
    ... > resolving local domains. ... > Im not sure what it is and would apprepicate some help from somebody. ... Bind is quite difficult, and i ahve just followd instructions found with 'bind ...
    (comp.os.linux.networking)
  • Re: bind difficulties
    ... > resolving local domains. ... > Im not sure what it is and would apprepicate some help from somebody. ... Bind is quite difficult, and i ahve just followd instructions found with 'bind ...
    (alt.linux)
  • Re: bind difficulties
    ... "James Hastie" wrote in message ... > resolving local domains. ... > IT is Bind v 8. ... > Im not sure what it is and would apprepicate some help from somebody. ...
    (alt.linux)
  • Re: bind difficulties
    ... "James Hastie" wrote in message ... > resolving local domains. ... > IT is Bind v 8. ... > Im not sure what it is and would apprepicate some help from somebody. ...
    (comp.os.linux.networking)
  • Re: bind difficulties
    ... "James Hastie" wrote in message ... > resolving local domains. ... > IT is Bind v 8. ... > Im not sure what it is and would apprepicate some help from somebody. ...
    (comp.os.linux)