标签:#dnsmasq

Posts

· 2018-09-05 · * dnsmasq *
node dnsmasq.log.js ~/dnsmasq.log
source code:
var fs = require("fs");
var readline = require('readline');
var ips = {};

function parse() {
    var arguments = process.argv.splice(2);
    console.log(arguments[0])
· 2018-09-04 · * dnsmasq *

noted from https://wiki.debian.org/HowTo/dnsmasq

Basic DNS setup

apt-get update
apt-get install dnsmasq

If your goal was to set up a simple DNS server, you just succeeded.
Now, if you want to add some names for your DNS server to resolve for your clients, simply add them to your /etc/hosts file.

Choosing your Interfaces

One you will probably want to do is tell dnsmasq which ethernet interface it can and cannot listen on, as we really don't want it listening on the internet. Around line 69 of the /etc/dnsmasq.conf file, you will see: