5 ms·
Domain names and IP addresses are interchangeable almost everywhere else right? There already is a standard here and the spec is breaking it, not the other way
by andy_ppp 6y ago
Domain names and IP addresses are interchangeable almost everywhere else right? There already is a standard here and the spec is breaking it, not the other way around.
- apple4ever 6y agoThat's how I feel. Specific records should not specify if its a domain name or an IP. They both should be accepted.
- tsimionescu 6y agoSo an A record should also hold domain names? Or IPv6 addresses? In DNS, there is actually a single record type that should hold a physical address, for each supported protocol address. We have A records for IPv4, and AAAA records for IPv6. Anything else should be a domain name. Adding both IPv4 and IPv6 support to every other record type would be a waste. Note: ignoring other protocol addresses above to keep it focused on what is currently is large scale use.
- teddyh 6y agoDNS records are statically typed. An “A” record can only contain an IPv4 address, just like a variable of type “int” in the C programming language only can contain an integer. An MX record, just like CNAME, SRV, and others, can only contain a domain name, not an IP address of any kind. You can input a domain name which looks like an IPv4 address, but this is simply a syntax overlap; it happens to be that the normal textual representation of IPv4 addresses are also valid syntax for an unrelated domain name. Tellingly, the syntax for IPv6 addresses does not overlap with domain names, so you cannot make this error with IPv6 addresses.
- bawolff 6y agoNot really when it comes to dns. You cant put a domain name in an A record or an ip address in a CNAME.
- andy_ppp 6y agoAnd that causes problems too right?
- eknshow 6y agoI don't think you appreciate how old DNS is or why it uses the data structures it does.