Code Monkey home page Code Monkey logo

Comments (7)

dubo-dubon-duponey avatar dubo-dubon-duponey commented on May 26, 2024

Note that this service above ^ is properly recognized and used by other software (it's an airplay receiver).

eg:
Screen Shot 2020-06-17 at 4 47 21 PM

from dnssd.

brutella avatar brutella commented on May 26, 2024

It looks like a dot "." in a host name is not recommended because it is used as a separator.

From RFC1033

The domain system allows a label to contain any 8-bit character.
Although the domain system has no restrictions, other protocols such
as SMTP do have name restrictions. Because of other protocol
restrictions, only the following characters are recommended for use
in a host name (besides the dot separator):

    "A-Z", "a-z", "0-9", dash and underscore

from dnssd.

dubo-dubon-duponey avatar dubo-dubon-duponey commented on May 26, 2024

I see. Thanks for the clarification.

Would you still welcome a PR that would handle that case (albeit not recommended)?

from dnssd.

brutella avatar brutella commented on May 26, 2024

Not sure if it is a good idea to allow hostnames, which are actually not valid.

from dnssd.

dubo-dubon-duponey avatar dubo-dubon-duponey commented on May 26, 2024

Mmm... "dots" do not appear in "labels" (as defined in the extract you quoted above), but a serie of dot separated labels form a valid domain name right?

SRV records do not seem to be limited to one level domain names, nor are A record, right? (https://en.wikipedia.org/wiki/SRV_record)

Specifically, Apple implementation (for Airplay), and other mDNS stacks seem to be happy with multi level domain names in SRV / A records.

Again I'm not exactly on top of my game with mDNS ;-), so, maybe I'm unaware of another RFC that would further limit this.

Either way, not opinionated one way or the other here, just curious about the bottom line :-).

from dnssd.

brutella avatar brutella commented on May 26, 2024

From wikipedia

The Internet standards (Requests for Comments) for protocols specify that labels may contain only the ASCII letters a through z (in a case-insensitive manner), the digits 0 through 9, and the hyphen-minus character ('-'). The original specification of hostnames in RFC 952 disallowed labels from starting with a digit or with a hyphen character, and could not end with a hyphen. However, a subsequent specification (RFC 1123) permitted hostname labels to start with digits. No other symbols, punctuation characters, or white space are permitted. Internationalized domain names are stored in the Domain Name System as ASCII strings using Punycode transcription.[4]

To me this sounds like dots should not be included in hostnames.


The accepted answer for Can I have dots in a hostname? states that as well.

Using a hostname with a dot in it will cause inconsistent results from any system that consumes DNS.
[...]
Don't use dotted name.

from dnssd.

dubo-dubon-duponey avatar dubo-dubon-duponey commented on May 26, 2024

To me this sounds like dots should not be included in hostnames.

This is where I'm struggling... From that same wikipedia page: "Hostnames are composed of a sequence of labels concatenated with dots. For example, "en.wikipedia.org" is a hostname."

To me, this reads as "a hostname may contain any number of labels separated by dots".

Either way, it's fine :-)

Thanks for taking the time to discuss this - I'll just rename these services.

from dnssd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.