DNSmasq is a small and convenient tool for configuring DNS services and DHCP servers. It is suitable for small networks. It provides DNS resolution and optional DHCP functions, and provides the function of local cache query requests. 1. Install dnsmasq CentOS systems: Debian/Ubuntu systems: 2. Check the version of DNSmasq The following is the output, as long as it does not prompt that the command cannot be found (-bash: dnsmasq: command not found) Dnsmasq version x.xx Copyright (c) 2000-2012 Simon Kelley This software comes with ABSOLUTELY NO WARRANTY. 3. Configuration File Open the configuration file and write the configuration content according to the parameter instructions below. Press I to enter the editing mode. After making changes, press ESC to exit and enter :wq to save and exit. Configuration file parameter description : Configuration file example: To customize address resolution, create a separate configuration file: Then write the custom address parsing in the format, as shown below: Note: If this file or configuration file is modified, DNSmasq needs to be restarted for it to take effect. 4. Instructions <br />Enable DNSmasq service Stop DNSmasq Service Restart the DNSmasq service (restart is required after modifying the configuration file) 5. Uninstall DNSmasq If there are files in the /etc/dnsmasq.d directory, you need to delete this directory before uninstalling normally: Delete this directory first CentOS systems Debian/Ubuntu systems: Set DNS to your VPS IP in your PC/router/mobile device and port 53 (if any). via: https://doub.io/wlzy-32/ |
<<: SpeedyKVM: $3.8/month/2.6G memory/1TB hard disk/5TB traffic/KVM/Dallas
>>: WootHosting: $189/month/E5620/80GB memory/12TB space/unlimited traffic/Los Angeles
AcclaimedHost is a newly established US hosting c...
DDoSTech, a German merchant, mainly provides high...
Vultr, a well-known American hosting provider, ha...
QuadHost, a business with good stability. There i...
DMIT has launched a test on Hong Kong CN2 KVM VPS...
Virpus, Black Friday offers, as follows: BLACK FR...
serverdiscounter, a German hosting company, provi...
UltraVPS, a German hosting provider, provides KVM...
Pictures speak louder than words! For details, pl...
Ri Host, a merchant established in December 2019,...
Baidu Cloud, owned by Baidu, has a large storage ...
TheQHost, which seems to have been established in...
Yeahhost, a Malaysian merchant, mainly provides v...
The collection and recommendation rules are: firs...
KTS24 or GT-Host, haendler (same company, just di...