That is means that the 'domain' is reserved and can be used locally. It doesn't specify all records in that namespace / domain will resolve to 127.0.01.
Think of it like .com If you want every A record in *.localhost to resolve to 127.0.0.1 what you did will do that. Jan 12, 2025 4:38:09 PM Lee <ler...@gmail.com>: > Excuse my ignorance, but > > https://datatracker.ietf.org/doc/html/rfc6761#section-6.3 > > The domain "localhost." and any names falling within ".localhost." > are special in the following ways: > > sure seems to mean that if I lookup curlmachine.localhost I should get > a 127.0.0.1 or ::1 address returned. Correct? > > I had to change my db.local file to > > $ cat db.local > ; > ; BIND data file for local loopback interface > ; > $TTL 604800 > @ IN SOA localhost. root.localhost. ( > 3 ; Serial > 604800 ; Refresh > 86400 ; Retry > 2419200 ; Expire > 604800 ) ; Negative Cache TTL > ; > @ IN NS localhost. > @ IN A 127.0.0.1 > @ IN AAAA ::1 > > * IN A 127.0.0.1 > IN AAAA ::1 > > > to make localhost and curl.localhost work. > > Is this wrong? and if so, why? > > TIA, > Lee > -- > Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from > this list > > ISC funds the development of this software with paid support subscriptions. > Contact us at https://www.isc.org/contact/ for more information. > > > bind-users mailing list > bind-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/bind-users -- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users