Modifying Mixed Case Mid-level Domain Names to be all Lower Case

2009-11-14 Thread Martin McCormick
Is there a way using nsupdate to change a $origin directive in a
zone file?

Some months ago, I accidentally loaded a configuration
in to a DHCP server that registered a bunch of private-network
hosts having a domain name of WiFi-ATRC.osu. We really wanted
wifi-atrc.osu. Bind worked properly and placed $origin
directives in the osu zone. Since dig builds the FQDN out of
these, all names in that domain end in WiFi-ATRC.osu which
confuses members of our group when they look at a zone file for
any reason. Is there a way to make bind rewrite those $origin
directives using nsupdate or any other safe control means?

This certainly does not effect resolution but scripts
that do various things can sometimes get confused by the
Mixed-case names. I would be really happy if there was a way in
bind9.5 to force all names to lower case. I realize that the
bodies of .TXT records must preserve their case, but the names,
themselves, ignore case so let's have them all lower case.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Modifying Mixed Case Mid-level Domain Names to be all Lower Case

2009-11-14 Thread Hauke Lampe
Martin McCormick wrote:

> Is there a way using nsupdate to change a $origin directive in a
> zone file?

$origin is a preprocessor statement. It's not an attribute of a zone, so
you cannot change it directly.

When BIND writes zone files, it uses $origin to group records that share
a common base name. Just "update delete/add" all records and the mixed
case $origin disappears.


HTH,
Hauke.




signature.asc
Description: OpenPGP digital signature
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Modifying Mixed Case Mid-level Domain Names to be all Lower Case

2009-11-14 Thread Martin McCormick
Hauke Lampe writes:
> $origin is a preprocessor statement. It's not an attribute of a zone, so
> you cannot change it directly.
> 
> When BIND writes zone files, it uses $origin to group records that share
> a common base name. Just "update delete/add" all records and the mixed
> case $origin disappears.

Excellent. That is kind of what I thought about doing
but I wasn't completely sure if I was not missing something so
that is what I will do. Thank you.

Martin McCormick
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Modifying Mixed Case Mid-level Domain Names to be all Lower Case

2009-11-15 Thread Martin McCormick
Hauke Lampe writes:
> When BIND writes zone files, it uses $origin to group records that share
> a common base name. Just "update delete/add" all records and the mixed
> case $origin disappears.

It did. Many thanks.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Modifying Mixed Case Mid-level Domain Names to be all Lower Case

2009-11-15 Thread Mark Andrews

In message <200911151416.nafeg2n5083...@dc.cis.okstate.edu>, Martin McCormick w
rites:
> Hauke Lampe writes:
> > When BIND writes zone files, it uses $origin to group records that share
> > a common base name. Just "update delete/add" all records and the mixed
> > case $origin disappears.
> 
> It did. Many thanks.

Note, all those scripts that got confused are actually broken.  You may want
to fix them anyway.

Mark
 
> Martin McCormick WB5AGZ  Stillwater, OK 
> Systems Engineer
> OSU Information Technology Department Telecommunications Services Group
> ___
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users