[NTLUG:Discuss] dns question - how to assign an address to foo.com

Greg Edwards greg at nas-inet.com
Mon Feb 12 19:47:53 CST 2001


David Camm wrote:
> 
> i need to add an address record to an existing domain so that the domain
> name without a higher level qualifier points to an IP.  i.e. foo.com
> needs to point to 123.234.123.4
> 
> www.foo.com has a different IP address.
> 
> i don't believe that a record in the db file like:
> 
>      IN A 123.234.123.4
> 
> would work.
> 
> the DNS/Bind book is no help - BUT, i get the feeling that:
> 
> foo.com. IN SOA ........
> 
> @   IN A 123.234.123.4
> www IN A 234.123.234.6
> 
> would work.
> 
> am i correct, or is there another method?
> 
> thanks.
> 
> david camm
> advanced web systems
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss


example foo.com where www.foo.com uses a different IP

==========================================================================
$TTL     43200
 
@        IN    SOA    ns.foo.com.  webmaster.foo.com. (
                        2000122601 ; serial
                        10800      ; refresh
                        3600       ; retry
                        3600000    ; expire
                        86400      ; default_ttl
                      )
 
@        IN    NS     ns.foo.com.
@        IN    MX 5   mail.foo.com.
 
                               ; reachable services
@        IN    A      123.234.123.4
 
www      IN    A      234.123.234.6

                               ; aliases
ns       IN    CNAME  foo.com.
mail     IN    CNAME  foo.com.
=========================================================================

The '@' is not really necessary as long as the previous record was
foo.com.  This would be the zone file on ns.foo.com.

There seems to be a trend to use domain.com as the home page instead of
www.domain.com lately.  Anyone know of any reason behind this or is it
just an idea someone had?

-- 
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com



More information about the Discuss mailing list