Lanciando la ricerca "whois" si trova che le due zone differiscono solo per la data di creazione (nasce prima "univ.trieste.it"), ovvero hanno gli stessi name server, amministratori, registrar, ecc.. Inoltre tramite DIG si può vedere che le due zone condividono lo stesso mail server.
Mi verrebbe da pensare che la zona "units.it" sia stata creata perchè il nome dell'altra zona potrebbe non essere così facile da ricordare, altrimenti non vedo il motivo di duplicare (se questo è quello che è successo) la zona "univ.trieste.it"
Non sarebbe stato sufficiente comperare il dominio "units.it" e aggiungere un RR di tipo "units.it CNAME univ.trieste. it" all'interno del name server di univ.trieste.it?
Domanda giustissima.
Per quello che abbiamo visto a lezione la risposta sarebbe "si". Nella realtà la risposta è "no, non è possibile". I motivi sono indicati più sotto. Questo aspetto è, ovviamente, importante nella pratica ma non ne ho parlato a lezione perché mi sembrava non essenziale per la comprensione (e purtroppo non è possibile vedere tutti i dettagli di tutto, non c'è il tempo materiale quindi è necessario fare delle scelte). Poiché non ne ho parlato a lezione, non fa parte del programma di esame---ma porsi domande di questo genere è giustissimo.
A CNAME-record cannot exist with any other records for the same name, because a name cannot both be an alias (CNAME) and something else at the same time.
From RFC1912 section 2.4:
"A CNAME record is not allowed to coexist with any other data."
"A CNAME record is not allowed to coexist with any other data."
If you try to create a CNAME-record for the name of the zone itself, you will always encounter this conflict because a zone always has at least a SOA-record and typically one or more NS-records with the zone name
PLEASE NOTE:
While certain other DNS servers may allow you to configure such a CNAME-record, it is still an error to do so.
The results of this are unpredictable, and often causes serious problems because in some situations the CNAME-record will override other critical records at the zone root level - for example hiding the NS- and SOA-records.
While certain other DNS servers may allow you to configure such a CNAME-record, it is still an error to do so.
The results of this are unpredictable, and often causes serious problems because in some situations the CNAME-record will override other critical records at the zone root level - for example hiding the NS- and SOA-records.