[Dnsmasq-discuss] Does dnsmasq support cname within same domain?
Matus UHLAR - fantomas
uhlar at fantomas.sk
Sat Mar 5 18:52:18 UTC 2022
>> > You will see the issue if you add the same domain in the cname config, eg:
>> > cname=bertand.your.dhcp.domain,bert
>>
>> 1. it's the default config from debian - I have not changed it.
>> (and it's commented out)
>>
>> 2. it was already explained that the problem lies elsewhere, my e-mail was
>> even reply to that explanation.
>>
>> It looks like the CNAME doesn't work for dhcp-assigned names although it
>> should according to the config snippet above.
>>
>> however, one should first verify this.
>>
>>
>> I avoid problems of this type by defining:
>> - hostnames and IP addresses in /etc/hosts
>> - hostnames and MAC addresses in /etc/ethers
>>
>> so the hostnames exist all the time.
On 04.03.22 22:35, Geert Stappers via Dnsmasq-discuss wrote:
>Yes providing (configuring) hostnames plus IP-address
>makes it possible to answer to A queries.
>
>
>Groeten
>Geert Stappers
>Still curious about the challenge that original poster is facing.
looks like the OP badly described the problem, but the behaviour is
described at:
https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2022q1/016188.html
in short:
$ dig @192.168.0.253 alias.dummy.example.com alias.test.example.com client1.test.example.com
;; QUESTION SECTION:
;alias.dummy.example.com. IN A
;; ANSWER SECTION:
alias.dummy.example.com. 0 IN CNAME client1.test.example.com.
client1.test.example.com. 0 IN A 192.168.0.70
;; QUESTION SECTION:
;alias.test.example.com. IN A
;; ANSWER SECTION:
alias.test.example.com. 5 IN CNAME client1.test.example.com.
;; QUESTION SECTION:
;client1.test.example.com. IN A
;; ANSWER SECTION:
client1.test.example.com. 5 IN A 192.168.0.70
where client1.test.example.com. returns "cname" record but not the resulting
A record, despite being known to server.
with "-t any" it looks even different:
$ dig -t any @192.168.0.253 alias.dummy.example.com alias.test.example.com client1.test.example.com
;; QUESTION SECTION:
;alias.dummy.example.com. IN ANY
;; ANSWER SECTION:
alias.dummy.example.com. 0 IN CNAME client1.test.example.com.
client1.test.example.com. 0 IN A 192.168.0.70
;; QUESTION SECTION:
;alias.test.example.com. IN ANY
;; ANSWER SECTION:
alias.test.example.com. 5 IN CNAME client1.test.example.com.
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31132
;client1.test.example.com. IN ANY
--
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The early bird may get the worm, but the second mouse gets the cheese.
More information about the Dnsmasq-discuss
mailing list