Unbound alias missing on webui but implemented on queries

Started by Laikar, May 31, 2024, 10:03:26 PM

Previous topic - Next topic
I am running unbound DNS, I have an override to make queries to my domain go to the local server, which is accessed via public IP outside of the network.
I have the main domain, example.com, with an override that points to local ip 192.168.1.10
I also have another override pointing test.example.com pointing to 192.168.56.15 for testing purposes
Then i have an alias that points all subdomains of example.com to the same server as example.com
And another alias to do the same for test.example.com

But the latter alias is missing from the webui (where it was originally created because I haven't even set up ssh access to opnsense)

I wanted to create a new override, and alias, to use an external headscale server, but the newly created alias never appeared on the webui after creation.
Even if it doesn't appear on the webui, the alias is working and the dns queries work as if the alias was implemented

webui screenshot

Exporting the configuration shows these results

<hosts>
    <host uuid="e4b865ca-81db-46bf-93c6-068525b88560">
        <enabled>1</enabled>
        <hostname/>
        <domain>example.com</domain>
        <rr>A</rr>
        <mxprio/>
        <mx/>
        <server>192.168.1.10</server>
        <description/>
    </host>
    <host uuid="18de6fbf-1d4b-4b3a-a993-29ac7c48e4a7">
        <enabled>1</enabled>
        <hostname/>
        <domain>test.example.com</domain>
        <rr>A</rr>
        <mxprio/>
        <mx/>
        <server>192.168.56.15</server>
        <description/>
    </host>
    <host uuid="147908df-2e04-4908-a6cc-ae24da657305">
        <enabled>1</enabled>
        <hostname/>
        <domain>headscale.example.com</domain>
        <rr>A</rr>
        <mxprio/>
        <mx/>
        <server>censored public ip</server>
        <description/>
    </host>
    <host uuid="f5b27b76-3248-479a-805b-899a9d936739">
        <enabled>0</enabled>
        <hostname/>
        <domain>tester.example.com</domain>
        <rr>A</rr>
        <mxprio/>
        <mx/>
        <server>192.168.56.15</server>
        <description/>
    </host>
</hosts>
<aliases>
    <alias uuid="b8900428-59c9-404b-9909-b452d95de2e6">
        <enabled>1</enabled>
        <host>e4b865ca-81db-46bf-93c6-068525b88560</host>
        <hostname>*</hostname>
        <domain>example.com</domain>
        <description/>
    </alias>
    <alias uuid="29c35623-0073-433c-8775-86aca4fe6c0d">
        <enabled>1</enabled>
        <host>18de6fbf-1d4b-4b3a-a993-29ac7c48e4a7</host>
        <hostname>*</hostname>
        <domain/>
        <description/>
    </alias>
    <alias uuid="f1e9ef11-dd2d-4507-af2c-36c9f754c729">
        <enabled>1</enabled>
        <host>147908df-2e04-4908-a6cc-ae24da657305</host>
        <hostname>*</hostname>
        <domain>headscale.example.com</domain>
        <description/>
    </alias>
</aliases>
<domains/>


Is this a bug on opnsense or have I terribly fucked up?