[NTLUG:Discuss] dns question - how to assign an address to foo.com
David Camm
bbai at onramp.net
Mon Feb 12 20:28:13 CST 2001
this would work just fine id all the domains i were defining were
domains above foo.com - perhaps i ddin;t make that clear. as a web
developer/hoster, i run dns for many domains which do not have the same
origin as my domain.
hence my soa records tend to look like:
foo.com. IN SOA ns.advwebsys.com admin.advwebsys.com. ......
if i understand correctly, the @ wouldn't work in this case (but, then
again, there's little i understand lately due to increasing senior
moments <GRIN>)
<10 minutes later>
upon re-reading some parts of the moth book, it appears that @ in the
soa line would work if the domain in the db file is the same as the name
in the zone statement in named.conf. this is almost talmudic in it's
definition. <ANOTHER GRIN>
meanwhile, what DOES appear to work is:
foo.com. IN SOA ......
IN A 12.34.43.3
IN NS
IN MX
etc....
www IN A 34.56.78.9
thank goodness it didn't take 10 restarts to get there.
thank ya'll for the help.
as to the trend to use foo.com as the web address, it DOES save 4
keystrokes. WHOOPEE!
Greg Edwards wrote:
>
> 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
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list