LOC Lookup
Query LOC records to retrieve geographic location information stored in DNS
Try example domain:
This page provides original, human-reviewed information about LOC record lookups, explaining the latitude/longitude/altitude encoding, precision fields, and why LOC records are rarely deployed today.
LOC (Location) records are DNS records that specify the physical location of a domain or host. They contain geographic coordinates (latitude, longitude, altitude) and precision information, allowing applications to determine the physical location associated with a domain name.
Key Components:
- Latitude/Longitude:Geographic coordinates in degrees, minutes, and seconds
- Altitude:Height above sea level in meters
- Size:Physical size of the location in meters
- Precision:Horizontal and vertical precision of the coordinates
How LOC Records Work:
- Applications query DNS for LOC records of a domain
- The DNS server returns the geographic coordinates and precision data
- Applications can use this data for location-based services
- Common uses include CDN optimization, compliance, and geographic routing
Basic LOC Record Format:
Format Breakdown:
Latitude: 37 23 30.000 N
Longitude: 122 8 30.000 W
Additional Parameters
Here are the detailed steps to add a LOC record for server.example.com in Cloudflare:
Example Coordinate Information:
Step-by-Step Instructions:
- Log in to your Cloudflare dashboard and select your domain
- Navigate to the "DNS" management page
- Click the "Add record" button
- Select "LOC" from the record type dropdown menu
- Fill in the following information:Type: LOCName: server (this creates a LOC record for server.example.com)LOC Content (Value):37 23 30.123 N 122 02 25.456 W 32.00m 1m 1m 10000m 10m(simplified precision parameters)
- Click "Save" to save the record
Cloudflare Interface Reference:
The interface for adding LOC records in Cloudflare's DNS management looks like this:

No LOC Records Found
The domain has no LOC records configured. This is normal for most domains.
Solution: Add LOC records only if location data is needed.
Invalid Coordinate Format
LOC records must follow the specific coordinate format with degrees, minutes, and seconds.
Solution: Verify coordinate format matches RFC 1876 specification.
Low Precision Values
Very low precision values may indicate inaccurate location data.
Solution: Use appropriate precision values based on your accuracy needs.
Multiple Conflicting Records
Multiple LOC records with different locations can cause confusion.
Solution: Use consistent location data or remove conflicting records.
Do I need LOC records for my domain?
LOC records are optional and not commonly used. They're mainly useful for specific applicationsthat need geographic information, such as CDN optimization or compliance requirements.
How accurate should my LOC record coordinates be?
The accuracy depends on your use case. For general purposes, city-level accuracy is sufficient.For precise applications, you may need meter-level accuracy with appropriate precision values.
Can I have multiple LOC records for one domain?
Yes, you can have multiple LOC records, but they should represent the same physical locationor different aspects of your infrastructure. Conflicting locations may cause confusion.
How do LOC records affect SEO or website performance?
LOC records don't directly affect SEO, but they can help with CDN optimization and geographicrouting, potentially improving performance for users in specific regions.
What's the difference between LOC records and geolocation APIs?
LOC records provide static location data stored in DNS, while geolocation APIs provide dynamiclocation detection based on IP addresses or other factors. LOC records are more reliable but less flexible.
Related Tools
Need Help?
Our tools are designed to be intuitive, but if you need assistance, we're here to help.
About Our Tools
Professional-grade email and DNS diagnostic tools trusted by IT professionals worldwide.
