Recieved many answers, thanks to Dan Anderson for the answer and Explanation:
lose these 2:
domianname IN A
www.domainname IN A
@ IN A xxx.xxx.xxx.xxx
In the db files the @ sign represents the domain as defined in the
named.boot/conf file, and any entry in the db file on the left that is not
followed by a period the @ is added by bind. (Most likely the example
which gave you this idea was for 1 server that handled numerous subdomains
like ucb.edu (as the domain in the named.boot/conf), the first one would
define a host domainname.ucb.edu and the second would define another as
domainname would become domainname.domainname.com
www.domainname would become www.domainname.domainname.com
The way your files seem to be setup you really just need:
@ IN A xxx.xxx.xxx.xxx (The @ is just expanded to
www IN A xxx.xxx.xxx.xxx (since there is no period after www
(www.) the @ is appended to be www.domainname.com)
As well as appropriate MX records.
The O'Reilly book is really indespensible.
Ed Fafard wrote:
> I just added a new domain to my DNS and need it to point to a different
> ip address.
> I have an existing dns server and many domains all pointing to the same
> ip address and db file. I just add the domain into the conf file and
> www and the domainname.com all works fine. So now I create a new dbfile
> db.domain and create an
> entry in named.conf pointing to the new db file. In the db file I have
> the following
> @ IN SOA heavy.iescrow.com. root.heavy.iescrow.com. ( 2000083103 10800
> 3600 86400 43200 )
> IN NS fs1.iescrow.com.
> IN NS heavy.iescrow.com.
> localhost IN A 127.0.0.1
> www IN A xxx.xxx.xxx.xx
> IN MX 10 mailhub.iescrow.com.
> IN MX 20 rs1.iescrow.com.
> www resolves to the new domain/ip fine but domainname.com does not
> resolve. Found some DNS info on the net
> and it says add these A records
> domianname IN A
> www.domainname IN A
> I have www in there which works but tried domainname with no luck. Get
> the following error from nslookup
> *** localhost can't find domainname.com: Non-existent host/domain
> I know I am missing something but cant find it.
> TIA and will summarize.
> U BEFORE POSTING please READ the FAQ located at
> N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
> . and the list POLICY statement located at
> M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
> A To submit questions/summaries to this list send your email message to:
> N firstname.lastname@example.org
> A To unsubscribe from this list please send an email message to:
> G email@example.com
> E and in the BODY type:
> R unsubscribe sun-managers
> S Or
> . unsubscribe sun-managers firstname.lastname@example.org
> L To view an archive of this list please visit:
> I http://www.latech.edu/sunman.html
U BEFORE POSTING please READ the FAQ located at
. and the list POLICY statement located at
A To submit questions/summaries to this list send your email message to:
A To unsubscribe from this list please send an email message to:
E and in the BODY type:
R unsubscribe sun-managers
. unsubscribe sun-managers email@example.com
L To view an archive of this list please visit:
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:16 CDT