Zhang YichunPublished at Nov 21, 2023Updated on Apr 10, 2024
Estimated reading time: 4 minutes
Reading times
OpenResty Edge can be used directly as an authoritative DNS server.In this tutorial, you will learn how toOpenResty EdgeConfigure DNS records and geographical location based DNS dispatching rules in.
Let's goOpenResty EdgeAdmin Web Console for.This is a sample deployment of our console.Each user has its own local deployment.
Enter the DNS application management interface.
Click the "openresty.net" application to see how the DNS application is configured in actual use.
First, you can see the DNS record map, which visually shows the resolution of different regions.
You can select different sub domains here.
The map can be turned on or off through this switch.
After clicking Add DNS Record, a new line of records will appear in the list.
You can select the type of record.
Enter the sub domain name of the record, such as "blog".
You can limit that only specific client addresses can be resolved to this record.
"Any" means no restriction.
Limit by CIDR.
For example, 192.168.1.1/24.
You can also limit the region, such as "Singapore".
Here we do not impose restrictions.
Here is the resolution result. You can enter the IP address directly.
You can also select the gateway cluster of Edge.
For example, "aws london".
This is the expiration time of the record.
You can select different units.
This is the switch of active and standby records. When there is no active record or the health check of the active record fails, the standby record will be used.
At the same time, Edge also supports health check of DNS records to avoid returning unavailable results.
Zhang Yichun is open sourceOpenResty®Project founder andOpenResty Inc.CEO and founder of the company.
Zhang Yichun (Github ID: agentzh) was born in Jiangsu, China, and now lives in the U.S. Bay Area.He was an advocate and leader of China's early open source technology and culture, and once worked for many internationally renowned high-tech enterprises, such asCloudflareYahoo, Alibaba, the pioneer of "edge computing", "dynamic tracking" and "machine programming", has more than 22 years of programming and 16 years of open source experience. As the leader of open source projects with more than 40 million global domain name users, heOpenResty®High tech enterprises created by open source projectsOpenResty Inc.It is located in the center of Silicon Valley in the United States.Its two main productsOpenResty XRay(UtilizeDynamic trackingTechnology) andOpenResty Edge(The all-purpose gateway software most suitable for microservices and distributed traffic), widely favored by many listed and large enterprises worldwide.Besides OpenResty, Zhang Yichun has contributed more than one million lines of code to many open source projects, including Linux kernel, NginxLuaJIT、GDB、SystemTap、LLVM, Perl, etc., and has written more than 60 open source software libraries.
Follow us
If you like this article, please follow usOpenResty Inc.CorporateBlog Site。You are also welcome to scan our WeChat official account:
translate
We provideEnglish versionOriginal text and Chinese translation (this article).We also welcome readers to provide translations in other languages. As long as the full text translation is not omitted, we will consider using it. Thank you very much!
Related articles
OpenResty XRayNov 13, 2023
OpenResty XRayUpdated on Apr 10, 2024Estimated reading time: 3 minutes
How to use the Global Server Load Balancing (GSLB) function in OpenResty Edge
View load balancing plan
GSLB configuration
Configure each node and adjust the system flow
View load balancing plan
GSLB configuration
Configure each node and adjust the system flow
OpenResty XRayDec 21, 2023
OpenResty XRayUpdated on Apr 10, 2024Estimated reading time: 5 minutes
How to use grayscale gateway server in OpenResty Edge
What is a grayscale server
Set gateway server as grayscale server
Publish changes to grayscale server
Test changes on grayscale servers
What is a grayscale server
Set gateway server as grayscale server
Publish changes to grayscale server
Test changes on grayscale servers
OpenResty XRayDec 4, 2023
OpenResty XRayUpdated on Apr 10, 2024Estimated reading time: 3 minutes
Configure Webhooks in OpenResty Edge
Create a webhook in OpenResty Edge Admin
Trigger this webhook
View the execution history of webhook
Create a webhook in OpenResty Edge Admin
Trigger this webhook
View the execution history of webhook
OpenResty XRayNov 23, 2023
OpenResty XRayUpdated on Apr 10, 2024Estimated reading time: 4 minutes
Configure custom error pages in OpenResty Edge
Custom Template Creation
Application of template
Verification of page rules
Global override rules for error pages
Custom Template Creation
Application of template
Verification of page rules
Global override rules for error pages
OpenResty XRayNov 15, 2023
OpenResty XRayUpdated on Apr 10, 2024Estimated reading time: 4 minutes
How to add a custom response header (using OpenResty Edge)
Add a new response header with a string as a value
Built in variable with "System Hostname" as the value
Add a new response header with a string as a value
Built in variable with "System Hostname" as the value
Article Contents
Popular articles
OpenResty XRayMay 2, 2016
OpenResty XRayMay 2, 2016
Random talk on dynamic tracking technology
What is dynamic tracking
Advantages of dynamic tracking
DTrace and SystemTap
Application of SystemTap in production
Flame diagram
Methodology
Knowledge is power
Open source and debugging symbols
Linux kernel support
Hardware Tracking
Analysis of the remains of the death process
Traditional debugging technology
A messy debugging world
OpenResty XRay
OpenResty XRaySep 7, 2020
OpenResty XRaySep 7, 2020
Introduction to Lua level CPU flame diagram
What is a flame diagram
Simple Lua sample
Complex Lua applications
Sampling overhead
Security
compatibility
Other types of Lua level flame diagram
OpenResty XRayAug 10, 2020
OpenResty XRayAug 10, 2020
Memory fragmentation in OpenResty and Nginx shared memory areas
Empty shared memory area
Fill similar sized entries
Remove Odd Keys
Delete the key in the first half
Mitigate memory fragmentation
OpenResty XRayAug 4, 2020
OpenResty XRayAug 4, 2020
How does OpenResty and Nginx's shared memory consume physical memory
Slab and memory page
Allocated memory may not be consumed
Spurious memory leak
HUP Reload
OpenResty XRayJan 21, 2020
OpenResty XRayJan 21, 2020
How OpenResty and Nginx allocate and manage memory
System level
Application level
Traditional Nginx server
OPENRESTYApr 25, 2019
OPENRESTYApr 25, 2019
Long term recruitment of outstanding talents
Back end engineer/system engineer
Sales Engineer
Latest articles
OpenResty XRayMay 12, 2024
OpenResty XRayMay 12, 2024
Introduction to OpenResty XRay Mobile Applications
Download and install OpenResty XRay for Android
Log in to OpenResty XRay
Fully automated analysis report
View performance chart data on the dashboard page
Guided analysis function
OpenResty XRayMay 11, 2024
OpenResty XRayMay 11, 2024
Online locating large memory objects in the PHP process (using OpenResty XRay)
Problem: Memory usage is too high
Locating large memory objects or values in the PHP process
Fully automated analysis and reporting
OpenResety EdgeMay 8, 2024
OpenResety EdgeMay 8, 2024
Enable automatic health check of gateway server in OpenResty Edge
Create a new page rule
Enable health check
test result
About OpenResty Edge
OpenResety EdgeApr 28, 2024
OpenResety EdgeApr 28, 2024
How to use gateway partition in OpenResty Edge
Create a new partition
Create a new application in the new partition
Create a new page rule
Test the new partition
About OpenResty Edge
OpenResety EdgeApr 10, 2024
OpenResety EdgeApr 10, 2024
Precisely restore the real client IP address in OpenResty Edge
Set the "Real Source IP Trust Address" and "Real IP Source" in the global configuration
Configure the app to output the client address
Verify the client address received in OpenResty Edge
About OpenResty Edge
Related articles
OpenResety EdgeNov 13, 2023
OpenResety EdgeNov 13, 2023
How to use the Global Server Load Balancing (GSLB) function in OpenResty Edge
View load balancing plan
GSLB configuration
Configure each node and adjust the system flow
OpenResety EdgeDec 21, 2023
OpenResety EdgeDec 21, 2023
How to use grayscale gateway server in OpenResty Edge
What is a grayscale server
Set gateway server as grayscale server
Publish changes to grayscale server
Test changes on grayscale servers
OpenResety EdgeDec 4, 2023
OpenResety EdgeDec 4, 2023
Configure Webhooks in OpenResty Edge
Create a webhook in OpenResty Edge Admin
Trigger this webhook
View the execution history of webhook
OpenResety EdgeNov 23, 2023
OpenResety EdgeNov 23, 2023
Configure custom error pages in OpenResty Edge
Custom Template Creation
Application of template
Verification of page rules
Global override rules for error pages
OpenResety EdgeNov 15, 2023
OpenResety EdgeNov 15, 2023
How to add a custom response header (using OpenResty Edge)
Add a new response header with a string as a value
Built in variable with "System Hostname" as the value