: My DNS zone includes a loopback record - do I need it? My dns zone contains a loopback: localhost IN A 127.0.0.1 Do I need it, and if so why? I can't think of a reason to have it here,
My dns zone contains a loopback:
localhost IN A 127.0.0.1
Do I need it, and if so why? I can't think of a reason to have it here, especially as - without a dot - it would be localhost.example.com
More posts by @Bryan171
2 Comments
Sorted by latest first Latest Oldest Best
This answer on ServerFault explains what this localhost entry is for serverfault.com/questions/120769/localhost-in-a-dns-zone
localhost.example.com is sometimes included on internal DNS servers to prevent "localhost" requests leaking out to the internet (for the case where John Smith types localhost/ in his browser & for whatever reason his resolver doesn't look in the hosts file, appends his search path (example.com) & starts asking name servers what that resolves to).
It also talks about the possibility that such a DNS record could be use for Cross Site Scripting (XSS) attacks and suggest removing it for that reason.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.