Re: FW: DNS Question

2009-10-26 Thread DAve

krad wrote:


a few massive assumptions here I feel.

1. all the domains are controlled by said person
2. Are on the same server
3. Fits with the relevent provisioning system,
4. Is probably are using bind


You betcha, though all good information.

1. Nope, the CNAME is not controlled by me.
2. Nope, the CNAMEd sites are on another provider.
3. Yes, it is possible by our support system.
4. Nope, no bind here.

I have been reading the info everyone posted, and I configured a domain 
as I was asked. Since the reconfigured domain did no harm to my servers, 
I am inclined to let them do it. If it is the right thing to do, or the 
proper thing to do, seems to matter little those in the big offices. If 
they can find nowhere on the internet where it says "THOU SHALL NOT DO 
", they believe  is industry standard.


So WTH, I'll do it, so long as it doesn't cause my pager to go beep in 
the night.


I am too tired of arguing to keep it up anymore.

Thanks,

DAve


--
"Posterity, you will know how much it cost the present generation to
preserve your freedom.  I hope you will make good use of it.  If you
do not, I shall repent in heaven that ever I took half the pains to
preserve it." John Quincy Adams

http://appleseedinfo.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FW: DNS Question

2009-10-26 Thread krad
2009/10/23 Len Conrad 

> -- Original Message --
> From: krad 
> Date:  Fri, 23 Oct 2009 15:56:40 +0100
>
> >2009/10/23 Sean Cavanaugh 
> >
> >>
> >>
> >>
> >> > Date: Fri, 23 Oct 2009 08:30:08 -0400
> >> > From: dave.l...@pixelhammer.com
> >> > To: freebsd-questions@freebsd.org
> >> > Subject: DNS Question
> >> >
> >> > Good morning.
> >> >
> >> > I have been asked by my co-workers and sales why I always create a A
> >> > record for new domains we host instead of a CNAME.
> >> >
> >> > The issue I run into lately with some domains is that a client has a
> >> > website with a industry host such as frank.relator.com and he wants
> to
> >> > have DNS point www.frank.com to frank.relator.com with a CNAME. The
> >> > client does not want an A record for frank.com.
> >> >
> >> > Somewhere, in a class far far away, I was taught a DNS zone had to
> have
> >> > a A record to function properly. I can't seem to locate anything in
> the
> >> > RFCs.
> >> >
> >> > Am I wrong?
> >> >
> >>
> >>
> >> I think you are confusing basics of DNS records. you are partially
> correct
> >> in that a DNS zone needs an initial A record to be able to translate a
> name
> >> to an IP, but there is nothing wrong about setting up a CNAME to point
> to a
> >> record in a different zone instead. you just cannot do a zone that has a
> >> CNAME only that does not at some point to a valid A record. CNAMEs are
> >> forwarders only whereas A records are actual lookups.
> >>
> >> for proper way to set this up
> >>
> >> The A record would be assigned for the main name that you want to
> associate
> >> to an IP address.
> >> The CNAME record just relates a different name to that original name.
> this
> >> allows you to change the IP address of the server and only have to
> update
> >> the original A record instead of every DNS record for that server.
> >>
> >> for small number of vhosts, this would not really be an issue, but
> imagine
> >> if you were hosting a couple hundred vhosts from a single IP and then
> had to
> >> change that IP because you switched your ISP. It would take you a LONG
> time
> >> to update them if they were all A records, but only a couple of seconds
> if
> >> you had it properly set up as CNAME's
> >>
> >> www.bobshosting.comA 192.168.0.1
> >> www.vhost1.com  CNAME  www.bobshosting.com.
> >> www.vhost2.com  CNAME  www.bobshosting.com.
> >> www.vhost3.com  CNAME  www.bobshosting.com.
> >> www.vhost4.com  CNAME  www.bobshosting.com.
> >>
> >>
> >>
> >> -Sean
> >>
> >>
> >>  ___
> >> freebsd-questions@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> To unsubscribe, send any mail to "
> >> freebsd-questions-unsubscr...@freebsd.org"
> >>
> >
> >I try to use CNAMES as much as possible, for one very good reason. If say
> I
> >have web server with 1000 vhost on it. I have one A record for the server
> >and all the cnames point at that A record. Now i need to change the ip of
> >the server. I update the A record and add a reverse record and im done. IF
> I
> >had done it your way with all A records I would now have to go and edit
> >another 1000 records. Even worse if some of these domains are not under my
> >control I have to go and liaise with customers, or other third parties,
> and
> >it becomes a complete mess. The chances of me convincing them all and
> >coordinated it correctly are minimal 8(
>
> domains sharing records is better handled by $INCLUDE
>
> $INCLUDE /path/db.ttl, which contains
>
> $TTL 6h
>
>
> $INCLUDE /path/db.ns, which contains
>
> @ ns ns1.domain.tld.
> @ ns ns2.domain.tld.
>
> $INCLUDE /path/db.www, which contains
>
> @   a ip.ad.re.ss
> www a ip.ad.re.ss
>
> etc.
>
> Changing an include file changes all the zone files that include it, giving
> enormous leverage, while removing the extra query required to resolve a
> CNAME to canonical.
>
> Len
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>

a few massive assumptions here I feel.

1. all the domains are controlled by said person
2. Are on the same server
3. Fits with the relevent provisioning system,
4. Is probably are using bind
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FW: DNS Question

2009-10-25 Thread Arthur Chance

Sean Cavanaugh wrote:

The other interesting side would be reverse DNS lookups. Only one

> record would be returned, and most likely would be the original A
> record. A nice example of this is doing a basic "ping -a ww.yahoo.com"
> which you get back that it is resolving "www-real.wa1.b.yahoo.com".

As a comment on reverse DNS lookups, although the example Sean gave 
should have a single PTR entry as the result of a reverse lookup, in 
general reverse DNS lookups can return *multiple* values. If multiple A 
records pointing at the same numeric address exist, the reverse lookup 
on that address must (if correct) return the corresponding multiple names.


RFC 2181 (Clarifications to the DNS Specification), section 10.2:

10.2. PTR records

   Confusion about canonical names has lead to a belief that a PTR
   record should have exactly one RR in its RRSet.  This is incorrect,
   the relevant section of RFC1034 (section 3.6.2) indicates that the
   value of a PTR record should be a canonical name.  That is, it should
   not be an alias.  There is no implication in that section that only
   one PTR record is permitted for a name.  No such restriction should
   be inferred.

   Note that while the value of a PTR record must not be an alias, there
   is no requirement that the process of resolving a PTR record not
   encounter any aliases.  The label that is being looked up for a PTR
   value might have a CNAME record.  That is, it might be an alias.  The
   value of that CNAME RR, if not another alias, which it should not be,
   will give the location where the PTR record is found.  That record
   gives the result of the PTR type lookup.  This final result, the
   value of the PTR RR, is the label which must not be an alias.

OK, there's a couple of big questions, which is how many DNS configs 
actually obey this and how much application code allows for it, but 
that's the spec.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FW: DNS Question

2009-10-23 Thread Len Conrad
-- Original Message --
From: krad 
Date:  Fri, 23 Oct 2009 15:56:40 +0100

>2009/10/23 Sean Cavanaugh 
>
>>
>>
>>
>> > Date: Fri, 23 Oct 2009 08:30:08 -0400
>> > From: dave.l...@pixelhammer.com
>> > To: freebsd-questions@freebsd.org
>> > Subject: DNS Question
>> >
>> > Good morning.
>> >
>> > I have been asked by my co-workers and sales why I always create a A
>> > record for new domains we host instead of a CNAME.
>> >
>> > The issue I run into lately with some domains is that a client has a
>> > website with a industry host such as frank.relator.com and he wants to
>> > have DNS point www.frank.com to frank.relator.com with a CNAME. The
>> > client does not want an A record for frank.com.
>> >
>> > Somewhere, in a class far far away, I was taught a DNS zone had to have
>> > a A record to function properly. I can't seem to locate anything in the
>> > RFCs.
>> >
>> > Am I wrong?
>> >
>>
>>
>> I think you are confusing basics of DNS records. you are partially correct
>> in that a DNS zone needs an initial A record to be able to translate a name
>> to an IP, but there is nothing wrong about setting up a CNAME to point to a
>> record in a different zone instead. you just cannot do a zone that has a
>> CNAME only that does not at some point to a valid A record. CNAMEs are
>> forwarders only whereas A records are actual lookups.
>>
>> for proper way to set this up
>>
>> The A record would be assigned for the main name that you want to associate
>> to an IP address.
>> The CNAME record just relates a different name to that original name. this
>> allows you to change the IP address of the server and only have to update
>> the original A record instead of every DNS record for that server.
>>
>> for small number of vhosts, this would not really be an issue, but imagine
>> if you were hosting a couple hundred vhosts from a single IP and then had to
>> change that IP because you switched your ISP. It would take you a LONG time
>> to update them if they were all A records, but only a couple of seconds if
>> you had it properly set up as CNAME's
>>
>> www.bobshosting.comA 192.168.0.1
>> www.vhost1.com  CNAME  www.bobshosting.com.
>> www.vhost2.com  CNAME  www.bobshosting.com.
>> www.vhost3.com  CNAME  www.bobshosting.com.
>> www.vhost4.com  CNAME  www.bobshosting.com.
>>
>>
>>
>> -Sean
>>
>>
>>  ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> freebsd-questions-unsubscr...@freebsd.org"
>>
>
>I try to use CNAMES as much as possible, for one very good reason. If say I
>have web server with 1000 vhost on it. I have one A record for the server
>and all the cnames point at that A record. Now i need to change the ip of
>the server. I update the A record and add a reverse record and im done. IF I
>had done it your way with all A records I would now have to go and edit
>another 1000 records. Even worse if some of these domains are not under my
>control I have to go and liaise with customers, or other third parties, and
>it becomes a complete mess. The chances of me convincing them all and
>coordinated it correctly are minimal 8(

domains sharing records is better handled by $INCLUDE

$INCLUDE /path/db.ttl, which contains

$TTL 6h


$INCLUDE /path/db.ns, which contains

@ ns ns1.domain.tld.
@ ns ns2.domain.tld.

$INCLUDE /path/db.www, which contains

@   a ip.ad.re.ss
www a ip.ad.re.ss

etc.

Changing an include file changes all the zone files that include it, giving 
enormous leverage, while removing the extra query required to resolve a CNAME 
to canonical.

Len

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FW: DNS Question

2009-10-23 Thread krad
2009/10/23 Sean Cavanaugh 

>
>
>
> > Date: Fri, 23 Oct 2009 08:30:08 -0400
> > From: dave.l...@pixelhammer.com
> > To: freebsd-questions@freebsd.org
> > Subject: DNS Question
> >
> > Good morning.
> >
> > I have been asked by my co-workers and sales why I always create a A
> > record for new domains we host instead of a CNAME.
> >
> > The issue I run into lately with some domains is that a client has a
> > website with a industry host such as frank.relator.com and he wants to
> > have DNS point www.frank.com to frank.relator.com with a CNAME. The
> > client does not want an A record for frank.com.
> >
> > Somewhere, in a class far far away, I was taught a DNS zone had to have
> > a A record to function properly. I can't seem to locate anything in the
> > RFCs.
> >
> > Am I wrong?
> >
>
>
> I think you are confusing basics of DNS records. you are partially correct
> in that a DNS zone needs an initial A record to be able to translate a name
> to an IP, but there is nothing wrong about setting up a CNAME to point to a
> record in a different zone instead. you just cannot do a zone that has a
> CNAME only that does not at some point to a valid A record. CNAMEs are
> forwarders only whereas A records are actual lookups.
>
> for proper way to set this up
>
> The A record would be assigned for the main name that you want to associate
> to an IP address.
> The CNAME record just relates a different name to that original name. this
> allows you to change the IP address of the server and only have to update
> the original A record instead of every DNS record for that server.
>
> for small number of vhosts, this would not really be an issue, but imagine
> if you were hosting a couple hundred vhosts from a single IP and then had to
> change that IP because you switched your ISP. It would take you a LONG time
> to update them if they were all A records, but only a couple of seconds if
> you had it properly set up as CNAME's
>
> www.bobshosting.comA 192.168.0.1
> www.vhost1.com  CNAME  www.bobshosting.com.
> www.vhost2.com  CNAME  www.bobshosting.com.
> www.vhost3.com  CNAME  www.bobshosting.com.
> www.vhost4.com  CNAME  www.bobshosting.com.
>
>
>
> -Sean
>
>
>  ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>

I try to use CNAMES as much as possible, for one very good reason. If say I
have web server with 1000 vhost on it. I have one A record for the server
and all the cnames point at that A record. Now i need to change the ip of
the server. I update the A record and add a reverse record and im done. IF I
had done it your way with all A records I would now have to go and edit
another 1000 records. Even worse if some of these domains are not under my
control I have to go and liaise with customers, or other third parties, and
it becomes a complete mess. The chances of me convincing them all and
coordinated it correctly are minimal 8(
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"