Manage Local DNS Records
In macOS, managing local DNS records is very useful for developing, testing, and debugging network applications. ServBay provides a local dnsmasq server, making it simpler to add, modify, pause, and delete DNS records. This article will detail how to use ServBay to manage local DNS records.
TIP
For websites added through ServBay's website feature, these records will display a small globe 🌐 icon on the right side of the DNS records. Such records need to be managed through the Website
feature and cannot be managed directly in the DNS records.
View Current Local DNS Records
With ServBay, you can easily view the content of current local DNS records. ServBay uses the dnsmasq server to handle these records, making management more convenient.
Viewing Steps
- Open the ServBay management interface.
- Navigate to
DNS
. - In the list on the right, select
DNS Server
. - ServBay will display the content of the current DNS records.
This way, you can intuitively see all configured domain and IP address mappings.
Add a Record to Local DNS
During development or testing, you might need to map a specific domain to an IP address. With ServBay, you can easily add a record to local DNS.
Adding Steps
- Open the ServBay management interface.
- Navigate to
DNS
. - In the list on the right, select
DNS Server
. - Click the
+
button. - Enter the domain and corresponding IP address, for example:
servbay.demo 127.0.0.1
1 - Click the
Add
button.
This will add the new domain and IP address mapping to the local DNS records.
TIP
ServBay supports adding multiple IP addresses as well as IPv6 addresses. Separate multiple IP addresses with commas (,).
Modify a Record in Local DNS
Sometimes, you may need to modify existing domain and IP address mappings. With ServBay, you can easily modify records in local DNS.
Modification Steps
- Open the ServBay management interface.
- Navigate to
DNS
. - In the list on the right, select
DNS Server
. - Locate the record you need to modify.
- Click the record.
- In the right panel, modify the domain or IP address, for example:
servbay.demo 127.0.0.1 -> servbay.demo 10.0.0.1
1 - Click the
Save
button.
This will update the specified record in the local DNS records.
Pause Parsing a Record in Local DNS
In some situations, you might need to temporarily pause the parsing of a record without deleting it. With ServBay, you can easily achieve this.
Pausing Steps
- Open the ServBay management interface.
- Navigate to
DNS
. - In the list on the right, select
DNS Server
. - Locate the record you need to pause.
- Click the
Pause
button next to the record.
ServBay will automatically pause the parsing of this record, and the icon in front of the record will change from green to gray.
Delete a Record in Local DNS
If a record is no longer needed, you can delete it from the local DNS records using ServBay.
Deleting Steps
- Open the ServBay management interface.
- Navigate to
DNS
. - In the list on the right, select
DNS Server
. - Locate the record you need to delete.
- Click the
Delete
button next to the record. - Confirm the deletion.
This will remove the specified domain and IP address mapping from the local DNS records.
Summary
ServBay offers a straightforward interface to manage macOS local DNS records, making it simpler and more intuitive to view, add, modify, pause, and delete records. With these features, you can more efficiently develop, test, and debug network applications. Whether adding new domain mappings or modifying existing records, ServBay meets your needs and ensures flexibility and control over your local network environment. By using ServBay's dnsmasq server, you can easily manage local DNS records and improve development and testing efficiency. For websites added through ServBay's website feature, you need to manage them through the Website
feature to ensure accuracy and consistency of all records.