OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: knebb on November 22, 2023, 11:34:54 AM

Title: Alias Name vs. Host Name
Post by: knebb on November 22, 2023, 11:34:54 AM
Hi,

in firewall I make use of "Aliases". It is not allowed to use an alias name with an underscore ("_" - for what reason?).

Now I created an alias which points to a hostname. Which is configured in UnboundDNS as overwrite. In Unbound, I can not create a hostname with a Hyphen ("-").

This is at least somehow confusing as I am always getting dizzy of which hostname is now the correct one.

Regarding to RFC 2181 (https://www.rfc-editor.org/rfc/rfc2181#page-13) there is no such limitation on the hostname. Hostname can have either "-" or "_".

There should be either in alias more characters be allowed or let unbound allow correct hostnames.

Any thoughts?

/KNEBB
Title: Re: Alias Name vs. Host Name
Post by: Patrick M. Hausen on November 22, 2023, 12:04:32 PM
Works here ...
Title: Re: Alias Name vs. Host Name
Post by: knebb on November 22, 2023, 12:07:17 PM
Sorry,

you are right. I mixed it up. It was the other way.
No underscore in Unbound, no Hyphen in Aliases.

Sorry for confusion...
/KNEBB
Title: Re: Alias Name vs. Host Name
Post by: Patrick M. Hausen on November 22, 2023, 12:12:05 PM
Underscores are forbidden in domain names. Possibly someone implemented an overly strict check.
Title: Re: Alias Name vs. Host Name
Post by: knebb on November 22, 2023, 12:16:25 PM
Well, this can be discussed. According to latest RFC (see link in first post) there are no such limitations in DNS!
[Yes, many clients and even servers still implement the "old" limitation but shouldn't we focus on the up-to-date ones?]

Still no answer why such a limitation exists in the alias tables?

/KNEBB
Title: Re: Alias Name vs. Host Name
Post by: Patrick M. Hausen on November 22, 2023, 12:21:39 PM
Thanks - seems like I need a firmware update for that part of my brain  ;) Been doing DNS since BIND 4 ...