What is local after localhost.local in the hosts file?

Asked 1 years ago, Updated 1 years ago, 85 views

We are developing by accessing http://fogefoge.localhost.local:3200/~ when we launch a local server in Rails, but if we delete the .local part in url, we get an error.

By defining it in the hosts file as follows, you can see that it is associated with an IP address, but I don't understand why .local should be added at the end.

 (/etc/hosts)
127.0.0.1 fogefoge.localhost.local

If you exclude .local, edit the hosts file, and then start up the server, and access http://fogefoge.localhost:3200/~, you will also get a Routing Error.

 (/etc/hosts)
127.0.0.1 fogefoge.localhost

If anyone knows anything, I would appreciate it if you could let me know.
Thank you for your cooperation.

ruby-on-rails hosts

2022-09-29 22:13

2 Answers

I think it means network (address) for local use.


2022-09-29 22:13

I'm not familiar with it, so I'll break it, but

.local is TLD (top-level domain).If you want to remove some of the domain names, it might be the first one.

PDF (December 1, 2016) According to IETF situation (DNS related)

Multicast DNS (.local) standardization was not preferred in dnsext
• Company A Protocol

Standardize independently of dnsext, dnsop
• IETF Last Call Passes
• No one complained (didn't you notice?)
• Submarine RFC?

RFC 6762 Booking .local with Multicast DNS
• "Company A got .local for free"

Note:


2022-09-29 22:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.