# IPv6 DNS records with dns_*() functions

- Thread: https://externals.io/message/11965
- Original archive: https://news-web.php.net/php.internals/11965
- Started by Ron Korving on 2004-08-06T14:26:48+00:00
- Messages: 9
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #11965 — Ron Korving — 2004-08-06T14:26:48+00:00

URL: https://externals.io/message/11965#11965

Hi,

I noticed the DNS record lookup functions (in the documentation) all refer
to AAAA as an IPv6 type record. Actually, AAAA is obsolete now.. Of course,
in PHP it would be very wise to support AAAA, but the official type is A6.
You may want to start supporting that in the dns_() functions, or if it
already works, you may want to update the documentation on these functions.

Ron

---

## #11967 — Sara Golemon — 2004-08-06T15:50:21+00:00

URL: https://externals.io/message/11965#11967 · In reply to: #11965

> I noticed the DNS record lookup functions (in the documentation) all refer
> to AAAA as an IPv6 type record. Actually, AAAA is obsolete now.. Of
course,
> in PHP it would be very wise to support AAAA, but the official type is A6.
> You may want to start supporting that in the dns_() functions, or if it
> already works, you may want to update the documentation on these
functions.
>
That's certainly doable, but to help track it, could you create a feature
request for it at bugs.php.net?

Also, links to any RFC or other documents pertaining to implementation would
be helpful.

I'll add this into dns_*() for PHP 5.1.0 and to Net_DNS for the next release
of that package.

-Sara

---

## #11971 — Sara Golemon — 2004-08-06T18:39:22+00:00

URL: https://externals.io/message/11965#11971 · In reply to: #11967

> > […]
refer
> > […]
> course,
> > […]
A6.
> > […]
> functions.
> > […]
> That's certainly doable, but to help track it, could you create a feature
> request for it at bugs.php.net?
>
Nevermind I already added it in.

-Sara

---

## #11972 — Ron Korving — 2004-08-06T18:58:50+00:00

URL: https://externals.io/message/11965#11972 · In reply to: #11971

Oh, okay... so no need for me to create a feature request?

Ron

"Sara Golemon" <pollita@php.net> wrote in message
news:20040806183927.95139.qmail@pb1.pair.com...
> > […]
> refer
> > […]
> A6.
> > […]
it
> > […]
feature
> > […]
> Nevermind I already added it in.
>
> -Sara

---

## #11973 — Sara Golemon — 2004-08-06T19:40:21+00:00

URL: https://externals.io/message/11965#11973 · In reply to: #11972

> > […]
> Oh, okay... so no need for me to create a feature request?
>
Nah, yer too slow ;)

-Sara

---

## #11974 — Ron Korving — 2004-08-06T21:01:05+00:00

URL: https://externals.io/message/11965#11974 · In reply to: #11973

lol :)

"Sara Golemon" <pollita@php.net> wrote in message
news:20040806194026.21047.qmail@pb1.pair.com...
> > […]
> Nah, yer too slow ;)
>
> -Sara

---

## #12002 — Stefan Esser — 2004-08-08T14:06:04+00:00

URL: https://externals.io/message/11965#12002 · In reply to: #11965

Hello all,

Ron Korving wrote:
> I noticed the DNS record lookup functions (in the documentation) all refer
> to AAAA as an IPv6 type record. Actually, AAAA is obsolete now.. Of course,
> in PHP it would be very wise to support AAAA, but the official type is A6.

It is actually the other way around. AAAA is the official standard and 
A6 is deprecated for years.

Stefan

---

## #12004 — Ron Korving — 2004-08-08T14:55:55+00:00

URL: https://externals.io/message/11965#12004 · In reply to: #12002

hmm, from http://www.dns.net/dnsrd/rfc/ i get the same idea, yet on other
websites it is mentioned sometimes that A6 is the "new" AAAA.. .pretty
weird..

if both are used in practice tho, i think PHP should parse them both, don't
you think?

Ron

"Stefan Esser" <sesser@php.net> wrote in message
news:4116334C.5060700@php.net...
> Hello all,
>
> Ron Korving wrote:
> > […]
refer
> > […]
course,
> > […]
A6.
>
> It is actually the other way around. AAAA is the official standard and
> A6 is deprecated for years.
>
> Stefan

---

## #12007 — Sara Golemon — 2004-08-08T16:47:52+00:00

URL: https://externals.io/message/11965#12007 · In reply to: #12004

> > […]
> hmm, from http://www.dns.net/dnsrd/rfc/ i get the same idea, yet on other
> websites it is mentioned sometimes that A6 is the "new" AAAA.. .pretty
> weird..
>
> if both are used in practice tho, i think PHP should parse them both,
don't
> you think?
>
I saw one reference to preferred order of resolution being A => A6 => AAAA
which implies that A6 has a higher order of preference than AAAA.  Also, the
DNS record type number for A6 is higher than AAAA, again indicating that
AAAA preceeded A6 in adoption.

In either event, as Ron states, there's no harm in covering 'em all.

-Sara
